diff options
author | Roman Shevchenko <roman.shevchenko@jetbrains.com> | 2014-09-01 19:48:39 +0400 |
---|---|---|
committer | Roman Shevchenko <roman.shevchenko@jetbrains.com> | 2014-09-01 20:01:55 +0400 |
commit | c0c83126a69a0c652f343e972f727ffd7f5f10af (patch) | |
tree | 55ad9503720184cd733d3825aa547f411662f17e /testData/src/pkg/TestClassLoop.java | |
parent | e629738a46ca5e82ad93939f3de7c05c37512323 (diff) | |
download | fernflower-c0c83126a69a0c652f343e972f727ffd7f5f10af.tar fernflower-c0c83126a69a0c652f343e972f727ffd7f5f10af.tar.gz fernflower-c0c83126a69a0c652f343e972f727ffd7f5f10af.tar.lz fernflower-c0c83126a69a0c652f343e972f727ffd7f5f10af.tar.xz fernflower-c0c83126a69a0c652f343e972f727ffd7f5f10af.zip |
java-decompiler: post-import cleanup (test sources reformatted)
Diffstat (limited to 'testData/src/pkg/TestClassLoop.java')
-rw-r--r-- | testData/src/pkg/TestClassLoop.java | 78 |
1 files changed, 38 insertions, 40 deletions
diff --git a/testData/src/pkg/TestClassLoop.java b/testData/src/pkg/TestClassLoop.java index 25964d9..0ecab7d 100644 --- a/testData/src/pkg/TestClassLoop.java +++ b/testData/src/pkg/TestClassLoop.java @@ -17,47 +17,45 @@ package pkg; public class TestClassLoop { - public static void testSimpleInfinite() { + public static void testSimpleInfinite() { - while(true) { - System.out.println(); + while (true) { + System.out.println(); + } + } + + public static void testFinally() { + + boolean a = (Math.random() > 0); + + while (true) { + try { + if (!a) { + return; + } + } + finally { + System.out.println("1"); + } + } + } + + public static void testFinallyContinue() { + + boolean a = (Math.random() > 0); + + for (; ; ) { + try { + System.out.println("1"); + } + finally { + if (a) { + System.out.println("3"); + continue; } + } - } - - public static void testFinally() { - - boolean a = (Math.random() > 0); - - while(true) { - try { - if(!a) { - return; - } - } finally { - System.out.println("1"); - } - } - - } - - public static void testFinallyContinue() { - - boolean a = (Math.random() > 0); - - for(;;) { - try { - System.out.println("1"); - } finally { - if(a) { - System.out.println("3"); - continue; - } - } - - System.out.println("4"); - } - - } - + System.out.println("4"); + } + } } |