View source code on GitHub
Don’t unnecessarily pass a type to Mockito’s
Suppress false positives by adding the suppression annotation
the enclosing element.
Disable this pattern completely by adding
-Xep:MockitoMockClassReference:OFF as compiler argument.
Shows the difference in example code before and after the bug pattern is
Shows code lines which will (not) be flagged by this bug pattern.
//BUG: Diagnostic contains: comment is placed above any violating line.