com.softicar.platform.common.core.annotations.Nullable Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of platform-common Show documentation
Show all versions of platform-common Show documentation
The SoftiCAR Platform is a lightweight, Java-based library to create interactive business web applications.
package com.softicar.platform.common.core.annotations;
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;
/**
* This annotation defines a Java reference to be null-able.
*
* Valid references that can be marked as null-able include method return
* values, method parameters and local variables. Such an annotation has two
* consequences:
*
* - Binding a
null
value to the reference is legal.
* - Dereferencing the reference is unsafe, i.e., a
*
NullPointerException
can occur at runtime.
*
*/
@Documented
@Retention(RetentionPolicy.CLASS)
@Target({ ElementType.METHOD, ElementType.PARAMETER, ElementType.LOCAL_VARIABLE, ElementType.TYPE_PARAMETER, ElementType.TYPE_USE })
public @interface Nullable {
// marker annotation with no members
}