Fork of the Fernflower decompiler
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
fernflower/test/unit/classes/TestClassTypes.java

54 lines
868 B

package unit.classes;
import java.util.ArrayList;
import java.util.List;
public class TestClassTypes {
public void testBoolean() {
byte var7 = 0;
long time = System.currentTimeMillis();
if(time % 2 > 0) {
var7 = 1;
} else if(time % 3 > 0) {
var7 = 2;
}
if(var7 == 1) {
System.out.println();
}
}
public boolean testBit(int var0) {
return (var0 & 1) == 1;
}
public void testSwitchConsts(int a) {
switch (a) {
case 88:
System.out.println("1");
break;
case 656:
System.out.println("2");
break;
case 65201:
case 65489:
System.out.println("3");
}
}
public void testAssignmentType(List list) {
List a = list;
if(a != null) {
(a = new ArrayList(a)).add("23");
}
System.out.println(a.size());
}
}