Top Description Methods
org.checkerframework.common.aliasing.qual

public @Interface Unique

extends Annotation
Annotations
@Documented
@Retention:RUNTIME
@Target:TYPE_USE, TYPE_PARAMETER
@SubtypeOf:MaybeAliased
Imports
java.lang.annotation.Documented, .ElementType, .Retention, .RetentionPolicy, .Target, org.checkerframework.framework.qual.SubtypeOf

An expression with this type has no aliases. In other words, no other expression, evaluated at the same program point, would evaluate to the exact same object value.

A constructor's return type should be annotated with @Unique if the constructor does not leak references to the constructed object. For example, the String() constructor return type is annotated as @Unique.

See Also
MaybeAliased

Method Summary

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString