Update to error-prone 2.17 (#12056)

This commit is contained in:
Robert Muir 2023-01-14 11:38:39 -05:00 committed by GitHub
parent 8ca05967e8
commit e06f8c2e8b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 3 deletions

View File

@ -146,6 +146,7 @@ allprojects { prj ->
'-Xep:IdentityHashMapBoxing:ERROR', '-Xep:IdentityHashMapBoxing:ERROR',
// '-Xep:IgnoredPureGetter:OFF', // we don't use these annotations // '-Xep:IgnoredPureGetter:OFF', // we don't use these annotations
// '-Xep:Immutable:OFF', // we don't use this annotation // '-Xep:Immutable:OFF', // we don't use this annotation
// '-Xep:ImpossibleNullComparison:OFF', // we don't use protobuf
'-Xep:Incomparable:ERROR', '-Xep:Incomparable:ERROR',
// '-Xep:IncompatibleArgumentType:OFF', // we don't use this annotation // '-Xep:IncompatibleArgumentType:OFF', // we don't use this annotation
// '-Xep:IncompatibleModifiers:OFF', // we don't use this annotation // '-Xep:IncompatibleModifiers:OFF', // we don't use this annotation
@ -173,6 +174,7 @@ allprojects { prj ->
'-Xep:JUnitParameterMethodNotFound:ERROR', '-Xep:JUnitParameterMethodNotFound:ERROR',
// '-Xep:JavaxInjectOnAbstractMethod:OFF', // we don't this annotation // '-Xep:JavaxInjectOnAbstractMethod:OFF', // we don't this annotation
// '-Xep:JodaToSelf:OFF', // we don't use joda-time // '-Xep:JodaToSelf:OFF', // we don't use joda-time
// '-Xep:LenientFormatStringValidation:OFF' // we don't use these google libraries
// '-Xep:LiteByteStringUtf8:OFF', // we don't use protobuf // '-Xep:LiteByteStringUtf8:OFF', // we don't use protobuf
// '-Xep:LocalDateTemporalAmount:OFF', // we don't use LocalDate math // '-Xep:LocalDateTemporalAmount:OFF', // we don't use LocalDate math
'-Xep:LockOnBoxedPrimitive:ERROR', '-Xep:LockOnBoxedPrimitive:ERROR',
@ -255,6 +257,7 @@ allprojects { prj ->
// On by Default : WARNING // On by Default : WARNING
// '-Xep:ASTHelpersSuggestions:OFF', // we don't use ASTHelpers
// '-Xep:AlmostJavadoc:OFF', // noisy (e.g. commented-out code misinterpreted as javadocs) // '-Xep:AlmostJavadoc:OFF', // noisy (e.g. commented-out code misinterpreted as javadocs)
// '-Xep:AlreadyChecked:OFF', // TODO: there are problems // '-Xep:AlreadyChecked:OFF', // TODO: there are problems
// '-Xep:AmbiguousMethodReference:OFF', // '-Xep:AmbiguousMethodReference:OFF',
@ -315,6 +318,7 @@ allprojects { prj ->
// '-Xep:ExtendingJUnitAssert:OFF', // noisy // '-Xep:ExtendingJUnitAssert:OFF', // noisy
// '-Xep:ExtendsObject:OFF', // TODO: there are problems // '-Xep:ExtendsObject:OFF', // TODO: there are problems
// '-Xep:FallThrough:OFF', // TODO: there are problems // '-Xep:FallThrough:OFF', // TODO: there are problems
// '-Xep:Finalize:OFF', // we use forbidden-apis for this (jdk-deprecated method)
// '-Xep:Finally:OFF', // TODO: there are problems // '-Xep:Finally:OFF', // TODO: there are problems
'-Xep:FloatCast:WARN', '-Xep:FloatCast:WARN',
'-Xep:FloatingPointAssertionWithinEpsilon:WARN', '-Xep:FloatingPointAssertionWithinEpsilon:WARN',
@ -331,6 +335,7 @@ allprojects { prj ->
// '-Xep:ImmutableEnumChecker:OFF', // noisy // '-Xep:ImmutableEnumChecker:OFF', // noisy
// '-Xep:InconsistentCapitalization:OFF', // TODO: there are problems // '-Xep:InconsistentCapitalization:OFF', // TODO: there are problems
// '-Xep:InconsistentHashCode:OFF', // noisy // '-Xep:InconsistentHashCode:OFF', // noisy
// '-Xep:IgnoredPureGetter:OFF', // we don't use these google libraries
'-Xep:IncorrectMainMethod:WARN', '-Xep:IncorrectMainMethod:WARN',
'-Xep:IncrementInForLoopAndHeader:WARN', '-Xep:IncrementInForLoopAndHeader:WARN',
'-Xep:InheritDoc:WARN', '-Xep:InheritDoc:WARN',
@ -382,7 +387,7 @@ allprojects { prj ->
'-Xep:LongFloatConversion:WARN', '-Xep:LongFloatConversion:WARN',
'-Xep:LoopOverCharArray:WARN', '-Xep:LoopOverCharArray:WARN',
'-Xep:MalformedInlineTag:WARN', '-Xep:MalformedInlineTag:WARN',
// '-Xep:MathAbsoluteRandom:OFF', // TODO: there are problems // '-Xep:MathAbsoluteNegative:OFF', // TODO: there are problems
// '-Xep:MemoizeConstantVisitorStateLookups:OFF', // we don't use this class // '-Xep:MemoizeConstantVisitorStateLookups:OFF', // we don't use this class
// '-Xep:MissingCasesInEnumSwitch:OFF', // redundant with ECJ incompleteEnumSwitch/missingEnumCaseDespiteDefault // '-Xep:MissingCasesInEnumSwitch:OFF', // redundant with ECJ incompleteEnumSwitch/missingEnumCaseDespiteDefault
// '-Xep:MissingFail:OFF', // TODO: there are problems // '-Xep:MissingFail:OFF', // TODO: there are problems
@ -401,6 +406,7 @@ allprojects { prj ->
// '-Xep:NarrowingCompoundAssignment:OFF', // noisy // '-Xep:NarrowingCompoundAssignment:OFF', // noisy
'-Xep:NegativeCharLiteral:WARN', '-Xep:NegativeCharLiteral:WARN',
'-Xep:NestedInstanceOfConditions:WARN', '-Xep:NestedInstanceOfConditions:WARN',
// '-Xep:NewFileSystem:OFF', // we don't create new filesystems
// '-Xep:NonAtomicVolatileUpdate:OFF', // TODO: there are problems // '-Xep:NonAtomicVolatileUpdate:OFF', // TODO: there are problems
// '-Xep:NonCanonicalType:OFF', // noisy // '-Xep:NonCanonicalType:OFF', // noisy
'-Xep:NonOverridingEquals:WARN', '-Xep:NonOverridingEquals:WARN',
@ -470,6 +476,7 @@ allprojects { prj ->
// '-Xep:UnnecessaryMethodInvocationMatcher:OFF', // we don't use spring // '-Xep:UnnecessaryMethodInvocationMatcher:OFF', // we don't use spring
'-Xep:UnnecessaryMethodReference:WARN', '-Xep:UnnecessaryMethodReference:WARN',
// '-Xep:UnnecessaryParentheses:OFF', // noisy // '-Xep:UnnecessaryParentheses:OFF', // noisy
// '-Xep:UnqualifiedYield:OFF', // javac takes care
'-Xep:UnrecognisedJavadocTag:WARN', '-Xep:UnrecognisedJavadocTag:WARN',
// '-Xep:UnsafeFinalization:OFF', // we don't use finalizers, deprecated for removal, fails build // '-Xep:UnsafeFinalization:OFF', // we don't use finalizers, deprecated for removal, fails build
'-Xep:UnsafeReflectiveConstructionCast:WARN', '-Xep:UnsafeReflectiveConstructionCast:WARN',

View File

@ -35,7 +35,7 @@ import org.apache.lucene.util.fst.Util;
* *
* <h2>Implementation details</h2> * <h2>Implementation details</h2>
* *
* <p>The construction step in {@link #finalize()} works as follows: * <p>The construction step in {@link #build()} works as follows:
* *
* <ul> * <ul>
* <li>A set of input terms and their buckets is given. * <li>A set of input terms and their buckets is given.

View File

@ -1,7 +1,7 @@
com.carrotsearch.randomizedtesting:*=2.8.1 com.carrotsearch.randomizedtesting:*=2.8.1
com.carrotsearch:hppc=0.9.1 com.carrotsearch:hppc=0.9.1
com.carrotsearch:procfork=1.0.6 com.carrotsearch:procfork=1.0.6
com.google.errorprone:*=2.15.0 com.google.errorprone:*=2.17.0
com.ibm.icu:icu4j=70.1 com.ibm.icu:icu4j=70.1
commons-codec:commons-codec=1.13 commons-codec:commons-codec=1.13
io.sgr:s2-geometry-library-java=1.0.0 io.sgr:s2-geometry-library-java=1.0.0