Added braces to the if block

This commit is contained in:
Jordan Simpson
2020-09-02 09:00:42 -05:00
parent 421bfc694f
commit 18a08cedd9

View File

@@ -6,8 +6,9 @@ public class CheckClassExistenceUnitTest {
public static class InitializingClass {
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();
}
}
}