Annotation Type Pure
-
@Documented @Retention(RUNTIME) @Target({METHOD,CONSTRUCTOR}) public @interface PurePureis a method annotation that means bothSideEffectFreeandDeterministic. The more important of these, when performing pluggable type-checking, is usuallySideEffectFree.For a discussion of the meaning of
Pureon a constructor, see the documentation ofDeterministic.This annotation is inherited by subtypes, just as if it were meta-annotated with
@InheritedAnnotation.- See the Checker Framework Manual:
- Side effects, determinism, purity, and
flow-sensitive analysis