Annotation Type PossiblyNull


  • @Documented
    @Target({FIELD,METHOD,PARAMETER,LOCAL_VARIABLE})
    @Retention(CLASS)
    @Nonnull(when=MAYBE)
    @TypeQualifierNickname
    @Deprecated
    public @interface PossiblyNull
    Deprecated.
    - use CheckForNull instead; the name of which more clearly indicates that not only could the value be null, but that good coding practice requires that the value be checked for null.
    The annotated element should might be null, and uses of the element should check for null. When this annotation is applied to a method it applies to the method return value.