Annotation Type CompareToMethod
-
@Documented @Target(METHOD) @Retention(RUNTIME) @InheritedAnnotation public @interface CompareToMethod
Method declaration annotation that indicates a method has a specification likecompareTo()
orcompare()
. The Interning Checker permits use ofif (this == arg) { return 0; }
orif (arg1 == arg2) { return 0; }
within the body.- See the Checker Framework Manual:
- Interning Checker