Added braces to the if block

This commit is contained in:
Jordan Simpson 2020-09-02 09:00:42 -05:00
parent 661027c771
commit b27e6a0470
1 changed files with 2 additions and 1 deletions

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();
}
}
}