aboutsummaryrefslogtreecommitdiff
path: root/test/pretty/resource/after/Sealed.java
diff options
context:
space:
mode:
Diffstat (limited to 'test/pretty/resource/after/Sealed.java')
-rw-r--r--test/pretty/resource/after/Sealed.java16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/pretty/resource/after/Sealed.java b/test/pretty/resource/after/Sealed.java
new file mode 100644
index 00000000..15096034
--- /dev/null
+++ b/test/pretty/resource/after/Sealed.java
@@ -0,0 +1,16 @@
+public class Sealed {
+ public abstract sealed class Parent permits Child1, Child2 {
+ }
+
+ public final class Child1 extends Parent {
+ }
+
+ public abstract non-sealed class Child2 extends Parent {
+ }
+
+ public sealed interface SealedInterface permits ChildInterface1 {
+ }
+
+ public non-sealed interface ChildInterface1 extends SealedInterface {
+ }
+} \ No newline at end of file