aboutsummaryrefslogtreecommitdiff
path: root/test/pretty/resource/before/Sealed.java
diff options
context:
space:
mode:
authorReinier Zwitserloot <reinier@zwitserloot.com>2021-09-16 02:07:26 +0200
committerGitHub <noreply@github.com>2021-09-16 02:07:26 +0200
commitd09d995a8ecbd15428eac92150b1d7b55a525d2c (patch)
tree3b61fab8d931e610ce271735cdbac234cdf94726 /test/pretty/resource/before/Sealed.java
parent14aaf25ede37228f186a7029aa9567353eb539ca (diff)
parentf516dd8ab3186121c4a880444302e2f980f393f8 (diff)
downloadlombok-d09d995a8ecbd15428eac92150b1d7b55a525d2c.tar.gz
lombok-d09d995a8ecbd15428eac92150b1d7b55a525d2c.tar.bz2
lombok-d09d995a8ecbd15428eac92150b1d7b55a525d2c.zip
Merge pull request #2936 from Rawi01/jdk-17
Add support for JDK17
Diffstat (limited to 'test/pretty/resource/before/Sealed.java')
-rw-r--r--test/pretty/resource/before/Sealed.java17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/pretty/resource/before/Sealed.java b/test/pretty/resource/before/Sealed.java
new file mode 100644
index 00000000..46828627
--- /dev/null
+++ b/test/pretty/resource/before/Sealed.java
@@ -0,0 +1,17 @@
+// version 15:
+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