diff options
Diffstat (limited to 'test/pretty/resource/after')
-rw-r--r-- | test/pretty/resource/after/CastWithIntersection.java | 6 | ||||
-rw-r--r-- | test/pretty/resource/after/Lambda.java | 7 | ||||
-rw-r--r-- | test/pretty/resource/after/MultiCatch.java | 9 |
3 files changed, 22 insertions, 0 deletions
diff --git a/test/pretty/resource/after/CastWithIntersection.java b/test/pretty/resource/after/CastWithIntersection.java new file mode 100644 index 00000000..2eebdee1 --- /dev/null +++ b/test/pretty/resource/after/CastWithIntersection.java @@ -0,0 +1,6 @@ +import java.util.*; +public class CastWithIntersection { + public void test(List<?> list) { + RandomAccess r = (RandomAccess & java.io.Serializable)list; + } +}
\ No newline at end of file diff --git a/test/pretty/resource/after/Lambda.java b/test/pretty/resource/after/Lambda.java new file mode 100644 index 00000000..54d7caa0 --- /dev/null +++ b/test/pretty/resource/after/Lambda.java @@ -0,0 +1,7 @@ +public class Lambda { + Runnable r = () -> System.out.println(); + java.util.Comparator<Integer> c1 = (a, b) -> a - b; + java.util.Comparator<Integer> c2 = (Integer a, Integer b) -> { + return a - b; + }; +}
\ No newline at end of file diff --git a/test/pretty/resource/after/MultiCatch.java b/test/pretty/resource/after/MultiCatch.java new file mode 100644 index 00000000..f0414c2e --- /dev/null +++ b/test/pretty/resource/after/MultiCatch.java @@ -0,0 +1,9 @@ +public class MultiCatch { + public void test() { + try { + System.out.println(); + } catch (IllegalArgumentException | IllegalStateException e) { + e.printStackTrace(); + } + } +}
\ No newline at end of file |