Sourced from com.google.errorprone:error_prone_core's releases.
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 defaultClosed issues: #4291. #4308, #4343, #4320
Full Changelog: https://github.com/google/error-prone/compare/v2.26.1...v2.27.0
ebe0a01
Release Error Prone 2.27.0fd9b826
Remove a very literal change-detector test, and move the comment to the
produ...f289d9e
VoidUsed
: flag Void
variables being
used, where they can simply be repl...3ee6f41
Fix for a crash in RedundantSetterCall.92c106d
Encourage when/thenReturn over doReturn/when.07c1a7c
Stop mentioning @Var
in[]9d66272
Correction to UseCorrectAssertInTests.a6ab21a
Fix a crash in JUnitIncompatibleType5a7b8d9
NearbyCallers: scan the body of expression lambdas.53d787c
Don't suggest ImmutableSet
if ImmutableList
is
unused.