2014-09-01 07:05:08 -04:00
|
|
|
package pkg;
|
2014-08-09 11:34:24 -04:00
|
|
|
|
|
|
|
public class TestClassLoop {
|
2014-08-13 16:17:21 -04:00
|
|
|
public static void testSimpleInfinite() {
|
|
|
|
while(true) {
|
|
|
|
System.out.println();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-08-09 11:34:24 -04: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");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|