@Documented @Retention(value=RUNTIME) @Target(value=TYPE_USE) @SubtypeOf(value=NonLeaked.class) public @interface LeakedToResult
For example, the receiver parameter of StringBuffer.append(String s)
is annotated as
@LeakedToResult
, because the method returns the updated receiver.
This annotation is currently trusted, not checked.
NonLeaked