diff options
Diffstat (limited to 'src/test/input/TestEclipse7.java')
-rw-r--r-- | src/test/input/TestEclipse7.java | 59 |
1 files changed, 0 insertions, 59 deletions
diff --git a/src/test/input/TestEclipse7.java b/src/test/input/TestEclipse7.java deleted file mode 100644 index f8bb127..0000000 --- a/src/test/input/TestEclipse7.java +++ /dev/null @@ -1,59 +0,0 @@ -package test.input; - -import java.io.FileReader; -import java.io.IOException; -import java.lang.reflect.Method; - -public class TestEclipse7 { - - -// public void testTryResources() throws IOException { -// -// try (FileReader reader = new FileReader("file"); FileReader reader1 = new FileReader("file")) { -// System.out.println(); -// } -// -// } -// -// public void testTryResources1() throws IOException { -// -// try (FileReader reader = new FileReader("file")) { -// System.out.println("block"); -// } catch(RuntimeException ex) { -// System.out.println(ex.toString()); -// } finally { -// System.out.println("finally"); -// } -// -// } - - public void testMultiCatch() { - - try { - Method method = getClass().getDeclaredMethod("foo"); - } catch (NoSuchMethodException | SecurityException e) { - e.printStackTrace(); - } - } - - -// public void testSwitchString() { -// -// String s = ""; -// switch(s) { -// case "Aa": // "xyz": -// System.out.println("!"); -// break; -// case "BB": // "abc": -// System.out.println("?"); -// break; -// case "__": -// System.out.println("_"); -// break; -// default: -// System.out.println("#"); -// } -// -// } - -} |