File tree Expand file tree Collapse file tree 2 files changed +9
-6
lines changed
main/java/sootup/jimple/parser
test/java/sootup/jimple/parser Expand file tree Collapse file tree 2 files changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -675,10 +675,13 @@ public Constant visitConstant(JimpleParser.ConstantContext ctx) {
675675 }
676676
677677 if (floatStr .charAt (0 ) == '#' ) {
678- switch (floatStr .substring (1 )) {
679- case "Infinity" : return DoubleConstant .getInstance (Double .POSITIVE_INFINITY );
680- case "-Infinity" : return DoubleConstant .getInstance (Double .NEGATIVE_INFINITY );
681- case "NaN" : return DoubleConstant .getInstance (Double .NaN );
678+ switch (floatStr .substring (1 )) {
679+ case "Infinity" :
680+ return DoubleConstant .getInstance (Double .POSITIVE_INFINITY );
681+ case "-Infinity" :
682+ return DoubleConstant .getInstance (Double .NEGATIVE_INFINITY );
683+ case "NaN" :
684+ return DoubleConstant .getInstance (Double .NaN );
682685 }
683686 }
684687
Original file line number Diff line number Diff line change @@ -793,8 +793,8 @@ public void testQuotedTypeParsing() throws IOException {
793793 @ Test
794794 public void testEdgeCaseDoubleParsing () throws IOException {
795795 SootClass <?> clazz =
796- parseJimpleClass (
797- CharStreams .fromFileName ("src/test/java/resources/jimple/EdgeCaseDoubleNumber.jimple" ));
796+ parseJimpleClass (
797+ CharStreams .fromFileName ("src/test/java/resources/jimple/EdgeCaseDoubleNumber.jimple" ));
798798 Set <? extends SootField > fields = clazz .getFields ();
799799 for (SootField field : fields ) {
800800 assertEquals (PrimitiveType .DoubleType .getInstance (), field .getType ());
You can’t perform that action at this time.
0 commit comments