From 834c2a49328a83961043cb8e16562896a4d87948 Mon Sep 17 00:00:00 2001 From: Mitya Lyubarskiy Date: Mon, 21 Oct 2019 04:45:36 -0700 Subject: [PATCH] [nullsafe] Restrict usage of StrictNullsafe annotations to currently supported modes Summary: We support only class level annotations for now. We will add more when we support more. Reviewed By: artempyanykh Differential Revision: D18036213 fbshipit-source-id: 44791318e --- .../main/java/com/facebook/infer/annotation/NullsafeStrict.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/infer/annotations/src/main/java/com/facebook/infer/annotation/NullsafeStrict.java b/infer/annotations/src/main/java/com/facebook/infer/annotation/NullsafeStrict.java index 0f5b0fae1..5452153b9 100644 --- a/infer/annotations/src/main/java/com/facebook/infer/annotation/NullsafeStrict.java +++ b/infer/annotations/src/main/java/com/facebook/infer/annotation/NullsafeStrict.java @@ -20,5 +20,5 @@ import java.lang.annotation.Target; * practice). */ @Retention(RetentionPolicy.CLASS) -@Target({ElementType.TYPE, ElementType.FIELD, ElementType.CONSTRUCTOR, ElementType.METHOD}) +@Target({ElementType.TYPE}) public @interface NullsafeStrict {}