@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.
NonLeaked
TODO: This annotation is currently trusted. A verification must be implemented.