aboutsummaryrefslogtreecommitdiff
path: root/src/utils/lombok/javac/Javac.java
diff options
context:
space:
mode:
authorRawi01 <Rawi01@users.noreply.github.com>2021-08-18 19:36:50 +0200
committerRawi01 <Rawi01@users.noreply.github.com>2021-08-18 20:20:57 +0200
commitf516dd8ab3186121c4a880444302e2f980f393f8 (patch)
tree2e3647caf9dc825b86c7b56bbfd7cd99b885ec1c /src/utils/lombok/javac/Javac.java
parentaab88086565355f2740b287cf6a8c28d3329150e (diff)
downloadlombok-f516dd8ab3186121c4a880444302e2f980f393f8.tar.gz
lombok-f516dd8ab3186121c4a880444302e2f980f393f8.tar.bz2
lombok-f516dd8ab3186121c4a880444302e2f980f393f8.zip
[jdk17] Add support for sealed classes
Diffstat (limited to 'src/utils/lombok/javac/Javac.java')
-rw-r--r--src/utils/lombok/javac/Javac.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/utils/lombok/javac/Javac.java b/src/utils/lombok/javac/Javac.java
index d9fcc4f2..3fa0fbb5 100644
--- a/src/utils/lombok/javac/Javac.java
+++ b/src/utils/lombok/javac/Javac.java
@@ -80,6 +80,8 @@ public class Javac {
public static final long COMPACT_RECORD_CONSTRUCTOR = 1L << 51; // MethodSymbols (the 'implicit' many-args constructor that records have)
public static final long UNINITIALIZED_FIELD = 1L << 51; // VarSymbols (To identify fields that the compact record constructor won't initialize)
public static final long GENERATED_MEMBER = 1L << 24; // MethodSymbols, VarSymbols (marks methods and the constructor generated in records)
+ public static final long SEALED = 1L << 62; // ClassSymbols (Flag to indicate sealed class/interface declaration)
+ public static final long NON_SEALED = 1L << 63; // ClassSymbols (Flag to indicate that the class/interface was declared with the non-sealed modifier)
/**
* Returns the version of this java compiler, i.e. the JDK that it shipped in. For example, for javac v1.7, this returns {@code 7}.