Releases: google/error-prone
Error Prone 2.12.0
New checks
BoxedPrimitiveEquality
DoubleBraceInitialization
IgnoredPureGetter
LockOnBoxedPrimitive
IncorrectMainMethod
LongDoubleConversion
RobolectricShadowDirectlyOn
StaticAssignmentOfThrowable
UnnecessaryLongToIntConversion
Varifier
Fixed issues: #58, #65, #1327, #1654, #2858, #2867, #2916, #2951, #2954, #3006, #3008
Full Changelog: v2.11.0...v2.12.0
Error Prone 2.11.0
Error Prone now requires JDK 11 or newer (#2730).
New checks
AutoValueBuilderDefaultsInConstructor
FloggerLogString
UnicodeDirectionalityCharacters
UnicodeInCode
AlreadyChecked
BugPatternNaming
MissingImplementsComparable
NegativeCharLiteral
PreferredInterfaceType
StronglyTypeByteString
UsingJsr305CheckReturnValue
Fixed issues: #2641, #2705, #2776, #2798, #2799, #2819, #2820, #2831, #2833, #2834, #2835, #2861, #2873, #2889, #2892, #2901
Full Changelog: v2.10.0...v2.11.0
Error Prone 2.10.0
New checks
AlwaysThrows
StackTraceElementGetClass
BareDotMetacharacter
DistinctVarargsChecker
MalformedInlineTag
MemoizeConstantVisitorStateLookups
UnicodeEscape
FieldMissingNullable
Java8ApiChecker
ParameterMissingNullable
TooManyParameters
TryWithResourcesVariable
UnnecessaryFinal
VoidMissingNullable
Full Changelog: v2.9.0...v2.10.0
Error Prone 2.9.0
Error Prone 2.8.1
This release adds a new check (LoopOverCharArray), and a handful of other small improvements (v2.8.0...v2.8.1).
Error Prone 2.8.0
Error Prone 2.7.1
Everything in Error Prone 2.7.0, plus an additional fix for JDK 17.
Error Prone 2.7.0
Changes
- Initial support for running on JDK 17 EA builds. Supports for Java 17 languages features is incomplete; bug reports for issues with Java 17 are welcome.
@InlineMe
is a deprecation mechanism that allows automated tools to cleanup existing callers: http://errorprone.info/docs/inlineme
New checks:
Closed issues: #2257, #2260, #2282, #2301, #2322, #2323, #2324
Error Prone 2.6.0
Checkers Added:
- CharacterGetNumericValue
- ErroneousThreadPoolConstructorChecker
- FloggerArgumentToString
- FloggerStringConcatenation
- ProtoBuilderReturnValueIgnored
- RethrowReflectiveOperationExceptionAsLinkageError
- SystemOut
- UnnecessaryAnonymousClass
Issues Closed:
- RFE: configurable DoNotCall/RestrictedApi/JdkObsolete/DefaultCharset/JavaTimeDefaultTimeZone check (#1211)
- Add SystemOut checker (#1534)
- WellKnownMutability: add java.awt.Color (#1682)
- IdentityHashMapUsage warnings differ from its documentation (#2095)
- UnusedMethod no longer works (#2215)
- Document naming convention for UnusedMethod (#2223)
Error Prone 2.5.1
Changes
NoSuchMethodError: 'com.sun.tools.javac.util.List com.sun.tools.javac.code.Symbol$TypeSymbol.getEnclosedElements
- Fixed
NoSuchMethodError
crash inHidingField
(#2092) - Fixed
NoSuchElementException
crash inRestrictedApiChecker
(#2099) - False positive in
DifferentNameButSame
(#2094) - False positive in
UnnecessaryOptionalGet
(#2101) - False positive in
UnnecessaryMethodReference
(#2102) - Fixed a regression in JDK 16-EA support (#2105)