Sourced from com.google.errorprone:error_prone_annotations's releases.
Error Prone 2.34.0
Changes:
- Passing the javac flag
--should-stop=ifError=FLOW
is now required when running Error Prone (#4595)- The
MemberName
check was renamed toIdentifierName
New checks:
FutureTransformAsync
: The usage of transformAsync is not necessary when all the return values of the transformation function are immediate futures.MisformattedTestData
: Reformats Java source code inside Error Prone test cases.MisleadingEscapedSpace
: Using\s
anywhere except at the end of a line in a text block is potentially misleading.ThrowIfUncheckedKnownUnchecked
:throwIfUnchecked(knownUnchecked)
is equivalent tothrow knownUnchecked
.Closed issues: #4595, #4598, #4620
Full changelog: https://github.com/google/error-prone/compare/v2.33.0...v2.34.0
bb113af
Release Error Prone 2.34.082a2168
Recognize that Runtime.halt
and exit
never return.1d04094
A couple of fixes in MoreAnnotations6203a0e
Remove references to -XDshouldStopPolicyIfError
now that `--should-stop=ifE...40bb976
Tweak ThrowIfUncheckedKnownChecked
implementation to match `ThrowIfUnchecke...6380cc2
Warn about throwIfUnchecked(unchecked)
, which could be just throw unchecked
.7a73690
Fix or suppress CheckReturnValue errorsca50d5c
Update --should-stop=ifError=FLOW
flagsc897d8f
Open-source more of check_api/src/test/java/com/google/errorprone/util4f630fc
Rename MemberName to SymbolName, given it's handling classes too now.