Error Prone 2.3.4
Performance Improvements: 40% speedup when run against Google's codebase with errors enabled.
New Checks:
- AlmostJavadoc
- BoxedPrimitiveEquality
- ChainedAssertionLosesContext
- CheckNotNullMultipleTimes
- DescribeMatch
- DoNotMockChecker and @DoNotMock
- DurationTemporalUnit
- EmptyBlockTag
- ExtendsAutoValue
- FieldCanBeLocal
- ImplementAssertionWithChaining
- Incomparable
- InstantTemporalUnit
- InterruptedExceptionSwallowed
- InvalidJavaTimeConstant
- JavaLocalDateTimeGetNano
- JavaLocalTimeGetNano
- JavaPeriodGetDays
- LiteEnumValueOf
- LiteProtoToString
- LocalDateTemporalAmount
- ModifySourceCollectionInStream
- ParametersButNotParameterized
- PreferJavaTimeOverload
- PrimitiveAtomicReference
- SameNameButDifferent
- TheoryButNoTheories
- ThrowSpecificExceptions
- TransientMisuse
- UnnecessaryAnonymousClass
- UnnecessaryBoxedAssignment
- UnnecessaryBoxedVariable
- UnnecessaryLambda
- UnnecessaryMethodInvocationMatcher
- WithSignatureDiscouraged
- XorPower
Removed, moved, or disabled:
- Moved Mockito checks into Mockito Error Prone Subproject.
- Merged PreconditionsCheckNotNull and PreconditionsCheckNotNullPrimitive into UnnecessaryCheckNotNull.
- Deleted DeprecatedThreadMethods in favour of general-purpose deprecation warnings.
- Disabled ProvidesFixChecker as it causes too much noise.
Fixed issues: #1106, #1225, #1231, #1234, #1238, #1241, #1246, #1252, #1259, #1260, #1271, #1274, #1287, #1308, #1316, #1329, #1373, #1391, #1408