diff --git a/error-prone-contrib/src/main/java/tech/picnic/errorprone/bugpatterns/JavaKeywords.java b/error-prone-contrib/src/main/java/tech/picnic/errorprone/bugpatterns/JavaKeywords.java index a86e1ff6035..c3d91f4ddca 100644 --- a/error-prone-contrib/src/main/java/tech/picnic/errorprone/bugpatterns/JavaKeywords.java +++ b/error-prone-contrib/src/main/java/tech/picnic/errorprone/bugpatterns/JavaKeywords.java @@ -12,6 +12,8 @@ private JavaKeywords() {} *

See: the Oracle * Documentation on Java Keywords. + * + *

In addition, `sealed` is added for Java 17. See: JEP-409. */ private static final ImmutableSet JAVA_KEYWORDS = ImmutableSet.of( @@ -50,6 +52,7 @@ private JavaKeywords() {} "protected", "public", "return", + "sealed", "short", "static", "strictfp",