From 3fdc1e96947ea0d15f3e00fefb28f8fb14c312b9 Mon Sep 17 00:00:00 2001 From: Michael Ernst Date: Wed, 2 Jan 2019 10:01:13 -0800 Subject: Add Checker Framework NonNull and Nullable annotations --- src/core/lombok/core/handlers/HandlerUtil.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/core/lombok') diff --git a/src/core/lombok/core/handlers/HandlerUtil.java b/src/core/lombok/core/handlers/HandlerUtil.java index ac91447d..7bc914fa 100644 --- a/src/core/lombok/core/handlers/HandlerUtil.java +++ b/src/core/lombok/core/handlers/HandlerUtil.java @@ -85,7 +85,8 @@ public class HandlerUtil { "org.jetbrains.annotations.NotNull", "android.support.annotation.NonNull", "org.eclipse.jdt.annotation.NonNull", - "org.springframework.lang.NonNull" + "org.springframework.lang.NonNull", + "org.checkerframework.checker.nullness.qual.NonNull" })); BASE_COPYABLE_ANNOTATIONS = Collections.unmodifiableList(Arrays.asList(new String[] { "lombok.NonNull", @@ -95,6 +96,7 @@ public class HandlerUtil { "android.support.annotation.NonNull", "org.eclipse.jdt.annotation.NonNull", "org.springframework.lang.NonNull", + "org.checkerframework.checker.nullness.qual.NonNull", "javax.annotation.Nullable", "javax.annotation.CheckForNull", "edu.umd.cs.findbugs.annotations.UnknownNullness", @@ -102,7 +104,8 @@ public class HandlerUtil { "org.jetbrains.annotations.Nullable", "android.support.annotation.Nullable", "org.eclipse.jdt.annotation.Nullable", - "org.springframework.lang.Nullable" + "org.springframework.lang.Nullable", + "org.checkerframework.checker.nullness.qual.Nullable" })); } -- cgit