diff --git a/sorald/src/main/java/sorald/processor/MathOnFloatProcessor.java b/sorald/src/main/java/sorald/processor/MathOnFloatProcessor.java index cc3e7460d..1b5b9dd0f 100644 --- a/sorald/src/main/java/sorald/processor/MathOnFloatProcessor.java +++ b/sorald/src/main/java/sorald/processor/MathOnFloatProcessor.java @@ -56,12 +56,8 @@ protected void repairInternal(CtBinaryOperator element) { */ binaryOperator.setType(getFactory().Type().doublePrimitiveType()); } - if (!binaryOperator.getType().equals(getFactory().Type().doublePrimitiveType())) { - binaryOperator - .getRightHandOperand() - .setTypeCasts(List.of(getFactory().Type().doublePrimitiveType())); - binaryOperator.setType(getFactory().Type().doublePrimitiveType()); - } + // We do not need to cast the type of the right hand operand as it is already a + // double } } }