diff options
author | Rawi01 <Rawi01@users.noreply.github.com> | 2021-08-18 19:36:50 +0200 |
---|---|---|
committer | Rawi01 <Rawi01@users.noreply.github.com> | 2021-08-18 20:20:57 +0200 |
commit | f516dd8ab3186121c4a880444302e2f980f393f8 (patch) | |
tree | 2e3647caf9dc825b86c7b56bbfd7cd99b885ec1c /test/pretty/resource/before/Sealed.java | |
parent | aab88086565355f2740b287cf6a8c28d3329150e (diff) | |
download | lombok-f516dd8ab3186121c4a880444302e2f980f393f8.tar.gz lombok-f516dd8ab3186121c4a880444302e2f980f393f8.tar.bz2 lombok-f516dd8ab3186121c4a880444302e2f980f393f8.zip |
[jdk17] Add support for sealed classes
Diffstat (limited to 'test/pretty/resource/before/Sealed.java')
-rw-r--r-- | test/pretty/resource/before/Sealed.java | 17 |
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 |