framework.src.org.checkerframework.framework.util.PurityUnqualified Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of checker Show documentation
Show all versions of checker Show documentation
The Checker Framework enhances Java’s type system to
make it more powerful and useful. This lets software developers
detect and prevent errors in their Java programs.
The Checker Framework includes compiler plug-ins ("checkers")
that find bugs or verify their absence. It also permits you to
write your own compiler plug-ins.
package org.checkerframework.framework.util;
import org.checkerframework.framework.qual.DefaultQualifierInHierarchy;
import org.checkerframework.framework.qual.InvisibleQualifier;
import org.checkerframework.framework.qual.SubtypeOf;
import java.lang.annotation.ElementType;
import java.lang.annotation.Target;
/**
* An annotation intended solely for representing an unqualified type in
* the qualifier hierarchy for the Purity Checker
*
* Note that because of the missing RetentionPolicy, the qualifier will
* not be stored in bytecode.
*/
// TODO: set it to store in source rather than having missing RetentionPolicy.
@InvisibleQualifier
@SubtypeOf({})
@DefaultQualifierInHierarchy
@Target({ ElementType.TYPE_USE, ElementType.TYPE_PARAMETER })
public @interface PurityUnqualified { }