Annotation Interface Opt


Indicates that the value null may appear.

This is the opposite to the @NonNull option, as proposed by oracle, but for coding styles where null is forbidden by default.

It can be applied to the following places where types do occur:

  class C {
     public static final @Opt Integer i; 
     public @Opt String makeString (String s, @Opt String i) {...}
  }
  
Since:
1.0