This annotation gives a compiler warning when an annotated method or a method of an annotated class (including both static and instance methods and methods in nested classes and subclasses) is used a position which does not make use of the return value of that method.
For example, someImmutableSet.add(0); will now give a compiler warning.
This annotation gives a compiler warning when an annotated method or a method of an annotated class (including both static and instance methods and methods in nested classes and subclasses) is used a position which does not make use of the return value of that method.
For example,
someImmutableSet.add(0);
will now give a compiler warning.