org.checkerframework.common.subtyping.qual.Unqualified Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spring-cloud-contract-shade Show documentation
Show all versions of spring-cloud-contract-shade Show documentation
Spring Cloud Contract Shaded Dependencies
package org.checkerframework.common.subtyping.qual;
import java.lang.annotation.Target;
import org.checkerframework.framework.qual.InvisibleQualifier;
import org.checkerframework.framework.qual.SubtypeOf;
/**
* A special annotation intended solely for representing an unqualified type in the qualifier
* hierarchy, as an argument to {@link SubtypeOf#value()}, in a type qualifier declaration.
*
* This annotation may not be written in source code; it is an implementation detail of the
* checker.
*
*
Note that because of the missing RetentionPolicy, the qualifier will not be stored in
* bytecode.
*
*
Only use this qualifier when experimenting with very simple type systems. For any more
* realistic type systems, introduce a top and bottom qualifier that gets stored in bytecode.
*/
@InvisibleQualifier
@SubtypeOf({})
@Target({}) // empty target prevents programmers from writing this in a program
// At the moment this is done in SubtypingATF to prevent errors in checker-framework-inference
// @DefaultFor(TypeUseLocation.OTHERWISE)
public @interface Unqualified {}