summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSorin Basca <sorinbasca@google.com>2022-09-28 10:41:40 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2022-09-28 10:41:40 +0000
commit197ea94fb602bd3d64bd1d06ca18a7140c904c4c (patch)
treeeba30841cc933e2a516315b74c266a25e87aeb9d
parent72120924279f4f8f4fc6207f58df139f5f03084e (diff)
parentdff074cc5d10ee5423f65557d7ebabfbba37fb3b (diff)
downloaderror_prone-197ea94fb602bd3d64bd1d06ca18a7140c904c4c.tar.gz
Set new warnings for errorprone 2.15.0 errors am: f6b8820150 am: b066bfe1a9 am: 5086b74cf8 am: d4343dcd8d am: dff074cc5d
Original change: https://android-review.googlesource.com/c/platform/external/error_prone/+/2221001 Change-Id: I5af3cf51ee7409cf6123d1d1e002e64a3f4fdf3c Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-rw-r--r--soong/error_prone.go11
1 files changed, 11 insertions, 0 deletions
diff --git a/soong/error_prone.go b/soong/error_prone.go
index 36ec9b3..d65781a 100644
--- a/soong/error_prone.go
+++ b/soong/error_prone.go
@@ -119,14 +119,19 @@ func init() {
"-Xep:ArraysAsListPrimitiveArray:WARN",
"-Xep:BadAnnotationImplementation:WARN",
"-Xep:BadShiftAmount:WARN",
+ "-Xep:BanJNDI:WARN",
+ "-Xep:BoxedPrimitiveEquality:WARN",
"-Xep:ComparableType:WARN",
"-Xep:ComplexBooleanConstant:WARN",
"-Xep:CollectionToArraySafeParameter:WARN",
"-Xep:ConditionalExpressionNumericPromotion:WARN",
"-Xep:DangerousLiteralNull:WARN",
+ "-Xep:DoubleBraceInitialization:WARN",
"-Xep:DurationFrom:WARN",
"-Xep:DurationTemporalUnit:WARN",
+ "-Xep:EmptyTopLevelDeclaration:WARN",
"-Xep:EqualsHashCode:WARN",
+ "-Xep:EqualsNull:WARN",
"-Xep:EqualsReference:WARN",
"-Xep:FormatString:WARN",
"-Xep:FromTemporalAccessor:WARN",
@@ -136,19 +141,23 @@ func init() {
"-Xep:HashtableContains:WARN",
"-Xep:IdentityBinaryExpression:WARN",
"-Xep:IdentityHashMapBoxing:WARN",
+ "-Xep:IgnoredPureGetter:WARN",
"-Xep:InstantTemporalUnit:WARN",
"-Xep:InvalidTimeZoneID:WARN",
"-Xep:InvalidZoneId:WARN",
"-Xep:IsInstanceIncompatibleType:WARN",
"-Xep:IsLoggableTagLength:WARN",
"-Xep:JUnitParameterMethodNotFound:WARN",
+ "-Xep:LockOnBoxedPrimitive:WARN",
"-Xep:MathRoundIntLong:WARN",
"-Xep:MislabeledAndroidString:WARN",
"-Xep:MisusedDayOfYear:WARN",
"-Xep:MissingSuperCall:WARN",
"-Xep:MisusedWeekYear:WARN",
"-Xep:ModifyingCollectionWithItself:WARN",
+ "-Xep:NoCanIgnoreReturnValueOnClasses:WARN",
"-Xep:NonRuntimeAnnotation:WARN",
+ "-Xep:NullableOnContainingClass:WARN",
"-Xep:NullTernary:WARN",
"-Xep:OverridesJavaxInjectableMethod:WARN",
"-Xep:ParcelableCreator:WARN",
@@ -165,6 +174,7 @@ func init() {
"-Xep:SelfEquals:WARN",
"-Xep:SizeGreaterThanOrEqualsZero:WARN",
"-Xep:StringBuilderInitWithChar:WARN",
+ "-Xep:TreeToString:WARN",
"-Xep:TryFailThrowable:WARN",
"-Xep:UnnecessaryCheckNotNull:WARN",
"-Xep:UnusedCollectionModifiedInPlace:WARN",
@@ -220,6 +230,7 @@ func init() {
"-J--add-exports=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED",
"-J--add-exports=jdk.compiler/com.sun.tools.javac.processing=ALL-UNNAMED",
"-J--add-exports=jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED",
+ "-J--add-exports=jdk.compiler/com.sun.tools.javac.model=ALL-UNNAMED",
"-J--add-exports=jdk.compiler/com.sun.tools.javac.comp=ALL-UNNAMED",
"-J--add-opens=jdk.compiler/com.sun.tools.javac.comp=ALL-UNNAMED",
}