Added braces to the if block
This commit is contained in:
parent
661027c771
commit
b27e6a0470
|
@ -6,8 +6,9 @@ public class CheckClassExistenceUnitTest {
|
||||||
|
|
||||||
public static class InitializingClass {
|
public static class InitializingClass {
|
||||||
static {
|
static {
|
||||||
if (true) //enable throwing of an exception in a static initialization block
|
if (true) { //enable throwing of an exception in a static initialization block
|
||||||
throw new RuntimeException();
|
throw new RuntimeException();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue