diff options
Diffstat (limited to 'test/test/misc/en')
-rw-r--r-- | test/test/misc/en/AutocastTest.java | 17 | ||||
-rw-r--r-- | test/test/misc/en/FastSetTest.java | 60 | ||||
-rw-r--r-- | test/test/misc/en/FinallyTest.java | 22 | ||||
-rw-r--r-- | test/test/misc/en/Foo.java | 52 | ||||
-rw-r--r-- | test/test/misc/en/InnerTest$1.java | 22 | ||||
-rw-r--r-- | test/test/misc/en/InnerTest.java | 13 | ||||
-rw-r--r-- | test/test/misc/en/InnerTestOld.java | 20 | ||||
-rw-r--r-- | test/test/misc/en/ListInsertTest.java | 34 | ||||
-rw-r--r-- | test/test/misc/en/Operation.java | 51 | ||||
-rw-r--r-- | test/test/misc/en/SwitchInTest.java | 19 | ||||
-rw-r--r-- | test/test/misc/en/TestOperation.java | 31 |
11 files changed, 0 insertions, 341 deletions
diff --git a/test/test/misc/en/AutocastTest.java b/test/test/misc/en/AutocastTest.java deleted file mode 100644 index ea08948..0000000 --- a/test/test/misc/en/AutocastTest.java +++ /dev/null @@ -1,17 +0,0 @@ -package test.misc.en; - -import java.util.HashMap; - -public class AutocastTest { - - public static void main(String[] args) { - - HashMap<Integer, Integer> map = new HashMap<Integer, Integer>(); - - Integer key = new Integer(1); - Integer value = map.containsKey(key)?0:map.get(key); - - System.out.println(value == null); - } - -} diff --git a/test/test/misc/en/FastSetTest.java b/test/test/misc/en/FastSetTest.java deleted file mode 100644 index ab94814..0000000 --- a/test/test/misc/en/FastSetTest.java +++ /dev/null @@ -1,60 +0,0 @@ -package test.misc.en; - -import java.util.Arrays; -import java.util.HashSet; -import java.util.Set; -import java.util.SortedSet; -import java.util.TreeSet; - -import de.fernflower.util.FastSetFactory; -import de.fernflower.util.FastSetFactory.FastSet; - -public class FastSetTest { - - public static void main(String[] args) { - - SortedSet<Integer> set = new TreeSet<Integer>(); - - for(int i=0;i<3;i++) { - set.add(i); - } - -// for(Integer s : set) { -// System.out.println(s); -// } - - FastSetFactory<Integer> factory = new FastSetFactory<Integer>(set); - -// factory.print(); - -// int index = 1; -// for(int i=0;i<100;i++) { -// if(i % 32 == 0) { -// index = 1; -// } -// -// System.out.println(index); -// index<<=1; -// -// } - - - - FastSet<Integer> set1 = factory.spawnEmptySet(); - set1.addAll(new HashSet<Integer>(Arrays.asList(new Integer[]{0, 1, 2, 3, 4, 5, 6, 7, 8, 9}))); - - FastSet<Integer> set2 = set1.getCopy(); - set2.remove(4); - set2.remove(5); - set2.add(10); - - set1.symdiff(set2); - Set<Integer> set3 = new TreeSet<Integer>(set1.toPlainSet()); - - for(Integer s : set3) { - System.out.println(s); - } - } - - -} diff --git a/test/test/misc/en/FinallyTest.java b/test/test/misc/en/FinallyTest.java deleted file mode 100644 index 2162636..0000000 --- a/test/test/misc/en/FinallyTest.java +++ /dev/null @@ -1,22 +0,0 @@ -package test.misc.en; - -public class FinallyTest { - - public FinallyTest() { - - int i; - try { - try { - i = 0; - } finally { - i = 1; - } - i = 2; - } finally { - i = 3; - } - - System.out.println(i); - } - -} diff --git a/test/test/misc/en/Foo.java b/test/test/misc/en/Foo.java deleted file mode 100644 index 762dcda..0000000 --- a/test/test/misc/en/Foo.java +++ /dev/null @@ -1,52 +0,0 @@ -package test.misc.en; - -class Foo { - - public Foo() {} - - public Foo(String test) {} - - private void foo() { - System.out.println("qwe"); - } - - static class Bar extends Foo { - void bar() { - System.out.println("1"); - //((Foo)this).foo(); - } - } - - static class Bar1 extends Bar { - void bar() { - super.bar(); - //System.out.println("2"); - //((Foo)this).foo(); - } - } - - static class Bar2 extends Bar1 { - void bar1() { - super.bar(); - } - } - - public static void main(String[] args) { - new Bar2().bar(); - } - - public int testfin() { - - int i; - - try { - System.out.println(); - i = 0; - } finally { - System.out.println(); - } - - - return i; - } -} diff --git a/test/test/misc/en/InnerTest$1.java b/test/test/misc/en/InnerTest$1.java deleted file mode 100644 index dd58e8e..0000000 --- a/test/test/misc/en/InnerTest$1.java +++ /dev/null @@ -1,22 +0,0 @@ -package test.misc.en; - - -class InnerTest$1 extends Foo implements Runnable { - - // $FF: synthetic field - final String val$test; - // $FF: synthetic field - final int val$test1; - - - InnerTest$1(String var1, int var2) { - super(); - this.val$test = var1; - this.val$test1 = var2; - } - - public void run() { - System.out.println(this.val$test); - System.out.println(this.val$test1); - } -} diff --git a/test/test/misc/en/InnerTest.java b/test/test/misc/en/InnerTest.java deleted file mode 100644 index 44361ff..0000000 --- a/test/test/misc/en/InnerTest.java +++ /dev/null @@ -1,13 +0,0 @@ -package test.misc.en; - -import test.misc.en.InnerTest$1; - -public class InnerTest { - - public static void main(String[] args) throws Throwable { - String test = args[0]; - int test1 = Integer.parseInt(args[1]); - new InnerTest$1(test, test1); - System.out.println("готово"); - } -} diff --git a/test/test/misc/en/InnerTestOld.java b/test/test/misc/en/InnerTestOld.java deleted file mode 100644 index b3af77c..0000000 --- a/test/test/misc/en/InnerTestOld.java +++ /dev/null @@ -1,20 +0,0 @@ -package test.misc.en; - -public class InnerTestOld { - - public static void main(String[] args) { - - final String test = args[0]; - final int test1 = Integer.parseInt(args[1]); - - Runnable r = new Runnable() { - public void run() { - System.out.println(test); - System.out.println(test1); - } - }; - - System.out.println("done"); - } - -} diff --git a/test/test/misc/en/ListInsertTest.java b/test/test/misc/en/ListInsertTest.java deleted file mode 100644 index ceabe83..0000000 --- a/test/test/misc/en/ListInsertTest.java +++ /dev/null @@ -1,34 +0,0 @@ -package test.misc.en; - -import java.util.ArrayList; -import java.util.Arrays; -import java.util.Date; -import java.util.LinkedList; -import java.util.List; - -public class ListInsertTest { - - public static void main(String[] args) { - - List<Integer> lst1 = new ArrayList<Integer>(Arrays.asList(new Integer[]{1, 2, 3})); - List<Integer> lst2 = new LinkedList<Integer>(Arrays.asList(new Integer[]{1, 2, 3})); - - Date d = new Date(); - - for(int i=0;i<300000;i++) { - lst1.add(1, i); - } - - System.out.println(new Date().getTime() - d.getTime()); - - d = new Date(); - - for(int i=0;i<300000;i++) { - lst2.add(1, i); - } - - System.out.println(new Date().getTime() - d.getTime()); - - } - -} diff --git a/test/test/misc/en/Operation.java b/test/test/misc/en/Operation.java deleted file mode 100644 index 3051fb3..0000000 --- a/test/test/misc/en/Operation.java +++ /dev/null @@ -1,51 +0,0 @@ -package test.misc.en; - -public enum Operation { - - PLUS(2) { - double eval(double x, double y) { return x + y; } - }, - MINUS(7) { - double eval(double x, double y) { return x - y; } - }, - TIMES(8) { - double eval(double x, double y) { return x * y; } - }, - DIVIDED_BY(0) { - double eval(double x, double y) { return x / y; } - }; - - - // Perform the arithmetic operation represented by this constant - - abstract double eval(double x, double y); - - Operation(int t) { - -// class LocalClass { -// -// } -// -// LocalClass e = null; - - System.out.println(); - } - - - public static void main(String args[]) { - double x = Double.parseDouble(args[0]); - double y = Double.parseDouble(args[1]); - - Operation opp = Operation.DIVIDED_BY; - - switch(opp) { - case MINUS: - System.out.println(); - case PLUS: - } - - for (Operation op : Operation.values()) { - System.out.println(x + " " + op + " " + y + " = " + op.eval(x, y)); - } - } -}
\ No newline at end of file diff --git a/test/test/misc/en/SwitchInTest.java b/test/test/misc/en/SwitchInTest.java deleted file mode 100644 index 8d04665..0000000 --- a/test/test/misc/en/SwitchInTest.java +++ /dev/null @@ -1,19 +0,0 @@ -package test.misc.en; - -public class SwitchInTest { - - public static void main(String[] args) { - - short t = 2; - switch(t) { - case -56: - case 0: - case 3: - case 129: - System.out.println(); - default: - } - - } - -} diff --git a/test/test/misc/en/TestOperation.java b/test/test/misc/en/TestOperation.java deleted file mode 100644 index c6763b1..0000000 --- a/test/test/misc/en/TestOperation.java +++ /dev/null @@ -1,31 +0,0 @@ -package test.misc.en; - -public class TestOperation { - - public void test() { - - double x = 2; - double y = 3; - - Operation opp = Operation.DIVIDED_BY; - - switch(opp) { - case MINUS: - System.out.println(); - case PLUS: - } - - switch(Operation.MINUS) { - case DIVIDED_BY: - System.out.println(); - case PLUS: - case TIMES: - } - - for (Operation op : Operation.values()) { - System.out.println(x + " " + op + " " + y + " = " + op.eval(x, y)); - } - - } - -} |