
com.wavefront.sdk.common.annotation.Nullable Maven / Gradle / Ivy
package com.wavefront.sdk.common.annotation;
import javax.annotation.Nonnull;
import javax.annotation.meta.TypeQualifierNickname;
import javax.annotation.meta.When;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* A common annotation to declare that annotated elements can be {@code null} under
* some circumstance. Should be used at parameter, return value, and field level.
*
* @author Han Zhang ([email protected]).
*/
@Target({ElementType.METHOD, ElementType.PARAMETER, ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Nonnull(when = When.MAYBE)
@TypeQualifierNickname
public @interface Nullable {
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy