Skip to content

Commit e478bae

Browse files
committed
format
1 parent 32baf1f commit e478bae

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

sootup.jimple.parser/src/main/java/sootup/jimple/parser/JimpleConverter.java

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff 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

sootup.jimple.parser/src/test/java/sootup/jimple/parser/JimpleConverterTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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());

0 commit comments

Comments
 (0)