2014-09-01 15:05:08 +04:00
|
|
|
package pkg;
|
2014-08-09 17:34:24 +02:00
|
|
|
|
|
|
|
public class TestClassLoop {
|
2014-08-13 22:17:21 +02:00
|
|
|
public static void testSimpleInfinite() {
|
|
|
|
while(true) {
|
|
|
|
System.out.println();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-08-09 17:34:24 +02:00
|
|
|
public static void testFinally() {
|
|
|
|
boolean var0 = Math.random() > 0.0D;
|
|
|
|
|
|
|
|
while(true) {
|
|
|
|
try {
|
|
|
|
if(!var0) {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
} finally {
|
|
|
|
System.out.println("1");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public static void testFinallyContinue() {
|
|
|
|
boolean var0 = Math.random() > 0.0D;
|
|
|
|
|
|
|
|
while(true) {
|
|
|
|
while(true) {
|
|
|
|
try {
|
|
|
|
System.out.println("1");
|
|
|
|
break;
|
|
|
|
} finally {
|
|
|
|
if(var0) {
|
|
|
|
System.out.println("3");
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
System.out.println("4");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|