diff options
Diffstat (limited to 'test/695-simplify-throws/src/Main.java')
-rw-r--r-- | test/695-simplify-throws/src/Main.java | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/test/695-simplify-throws/src/Main.java b/test/695-simplify-throws/src/Main.java index 2799624f25..9a95d80c2d 100644 --- a/test/695-simplify-throws/src/Main.java +++ b/test/695-simplify-throws/src/Main.java @@ -15,31 +15,31 @@ */ public class Main { - public static boolean alwaysThrows() { - throw new Error(""); - } + public static boolean alwaysThrows() { + throw new Error(""); + } - public static void test() { - alwaysThrows(); - while (condition) { - int a = 2; - while (otherCondition) { - a = 3; - } - staticField = a; + public static void test() { + alwaysThrows(); + while (condition) { + int a = 2; + while (otherCondition) { + a = 3; + } + staticField = a; + } } - } - public static void main(String[] args) throws Exception { - try { - test(); - throw new Exception("Unexpected exception"); - } catch (Error e) { - // Expected. + public static void main(String[] args) throws Exception { + try { + test(); + throw new Exception("Unexpected exception"); + } catch (Error e) { + // Expected. + } } - } - static boolean condition = false; - static boolean otherCondition = false; - static int staticField = 1; + static boolean condition = false; + static boolean otherCondition = false; + static int staticField = 1; } |