Error Prone 2.27.0
New checks:
ClassInitializationDeadlock
detects class initializers that reference subtypes of the current class, which can result in deadlocks.MockitoDoSetup
suggests usingwhen
/thenReturn
overdoReturn
/when
for additional type safety.VoidUsed
suggests using a literalnull
instead of referring to aVoid
-typed variable.
Modified checks:
TruthSelfEquals
has been renamed and generalized asSelfAssertion
RedundantSetterCall
has been improved, and enabled as an error oby default
Closed issues: #4291. #4308, #4343, #4320
Full Changelog: v2.26.1...v2.27.0