package jetbrains.mps.traceInfo.test;
/*Generated by MPS */
import java.util.Collections;
public class TestClass {
public TestClass() {
}
public static void ifTest() {
String nullString = null;
if (!(nullString.equals("@"))) {
String someString = ((nullString == null) ? "null" : "not null");
System.err.println(someString);
return;
} else {
Collections.EMPTY_SET.toString();
}
}
public static void forTest() {
int j = 0;
for (int i = 0; i < 100; i += (Integer) null) {
j++;
}
}
public static void blockStatementTest() {
throw new RuntimeException();
}
public static void foreachTest() {
int sum = 0;
int[] array = {1, 2, 3};
for (int it : array) {
sum += it;
throw new RuntimeException();
}
System.err.println("sum = " + sum);
}
public static void generatedForeachTest() {
int sum = 0;
int[] array = {1, 2, 3};
for (int it_gen : array) {
sum += it_gen;
throw new RuntimeException();
}
System.err.println("sum = " + sum);
}
public void internalClassTest() {
new Thread(new Runnable() {
public void run() {
System.err.println("Hi there!");
}
});
}
public static void main(String[] args) {
}
}