diff options
author | Stiver <stiver.mail@gmail.com> | 2014-03-04 15:13:11 +0100 |
---|---|---|
committer | Stiver <stiver.mail@gmail.com> | 2014-03-04 15:13:11 +0100 |
commit | e2d0f5d9c38561d67f23754c00addb4a3547efb2 (patch) | |
tree | 1832f16037c086b48266b8566aecc61f45f4e5f1 /src/test/misc/ExtTest.java | |
download | fernflower-e2d0f5d9c38561d67f23754c00addb4a3547efb2.tar fernflower-e2d0f5d9c38561d67f23754c00addb4a3547efb2.tar.gz fernflower-e2d0f5d9c38561d67f23754c00addb4a3547efb2.tar.lz fernflower-e2d0f5d9c38561d67f23754c00addb4a3547efb2.tar.xz fernflower-e2d0f5d9c38561d67f23754c00addb4a3547efb2.zip |
initial commit
Diffstat (limited to 'src/test/misc/ExtTest.java')
-rw-r--r-- | src/test/misc/ExtTest.java | 81 |
1 files changed, 81 insertions, 0 deletions
diff --git a/src/test/misc/ExtTest.java b/src/test/misc/ExtTest.java new file mode 100644 index 0000000..ec3d30c --- /dev/null +++ b/src/test/misc/ExtTest.java @@ -0,0 +1,81 @@ +package test.misc; + +import java.io.IOException; +import java.sql.Timestamp; +import java.util.ArrayList; +import java.util.Date; +import java.util.HashMap; +import java.util.Map.Entry; + +public class ExtTest<E> extends ArrayList<E> { + + public static void main(String[] args) { + + Date d = new Date(); Timestamp t = new Timestamp(d.getTime()); + System.out.println(d.after(t)); + + System.out.println((int)-1); + System.out.println((int)1); + System.out.println((Integer)1); + System.out.println((Integer)1); + + Class c = String.class; + + Integer Integer = 0; + Integer = (Integer)-1; + + int z = 0; + z = z+++(++z); + + Entry ent = (Entry)new HashMap().entrySet().iterator().next(); + + label1: { + System.out.println("1"); + if(Math.random() > 4) { + break label1; + } + System.out.println("2"); + } + System.out.println("3"); + } + + public <T extends E> void test(T o) { + + } + + public void testException() throws IOException { +// if(true) { +// throw new RuntimeException(); +// } else { +// throw new IOException(); +// } +// throw true?new IOException():new IOException(); +// throw true?new ClassCastException():new IOException(); + } + + public static int ttt() { + + Object obj = new Integer(5); + synchronized (new Integer(3)) { + System.out.println(obj); + obj = null; + } + + + System.out.println("1"); + if(Math.random() > 1) { + System.out.println("2"); + } else { + System.out.println("3"); + } + System.out.println("4"); + + int a = 0; + try { + a = 2; + return a; + } finally { + a = 4; + } + } +} |