Error Prone 2.27.0
New checks:
ClassInitializationDeadlockdetects class initializers that reference subtypes of the current class, which can result in deadlocks.MockitoDoSetupsuggests usingwhen/thenReturnoverdoReturn/whenfor additional type safety.VoidUsedsuggests using a literalnullinstead of referring to aVoid-typed variable.
Modified checks:
TruthSelfEqualshas been renamed and generalized asSelfAssertionRedundantSetterCallhas been improved, and enabled as an error oby default
Closed issues: #4291. #4308, #4343, #4320
Full Changelog: v2.26.1...v2.27.0