com.softicar.platform.common.core.annotations.NonNull 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 non-null.
*
* Valid references that can be marked as non-null include method return values,
* method parameters and local variables. Such an annotation has two
* consequences:
*
* - An attempt to bind a
null
value to the reference is a
* compile time error.
* - Dereferencing the reference is safe, i.e., no
*
NullPointerException
can occur at runtime.
*
*/
@Documented
@Retention(RetentionPolicy.CLASS)
@Target(ElementType.TYPE_USE)
public @interface NonNull {
// marker annotation with no members
}