[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
master
Mitya Lyubarskiy 5 years ago committed by Facebook Github Bot
parent 6511b2052a
commit 834c2a4932

@ -20,5 +20,5 @@ import java.lang.annotation.Target;
* practice). * practice).
*/ */
@Retention(RetentionPolicy.CLASS) @Retention(RetentionPolicy.CLASS)
@Target({ElementType.TYPE, ElementType.FIELD, ElementType.CONSTRUCTOR, ElementType.METHOD}) @Target({ElementType.TYPE})
public @interface NullsafeStrict {} public @interface NullsafeStrict {}

Loading…
Cancel
Save