core: don't add redundant brackets
This commit is contained in:
@@ -36,4 +36,8 @@ public abstract class AbstractTest {
|
||||
throw new AssertionError(a1 + " != " + a2);
|
||||
}
|
||||
}
|
||||
|
||||
public static void fail() {
|
||||
throw new AssertionError();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -22,13 +22,11 @@ public class TestTypeResolver2 extends AbstractTest {
|
||||
}
|
||||
|
||||
private static void doPrint(String s1) {
|
||||
// incorrect call
|
||||
assertTrue(false);
|
||||
fail();
|
||||
}
|
||||
|
||||
private static void doPrint(Integer s1) {
|
||||
// incorrect call
|
||||
assertTrue(false);
|
||||
fail();
|
||||
}
|
||||
|
||||
private static void doPrint(Object s1) {
|
||||
|
||||
Reference in New Issue
Block a user