Toggle navigation
Error Prone
Bug Patterns
Docs
GitHub
NoCanIgnoreReturnValueOnClasses
@CanIgnoreReturnValue should not be applied to classes as it almost always overmatches (as it applies to constructors and all methods), and the CIRVness isn't conferred to its subclasses.
Severity
ERROR