diff options
Diffstat (limited to 'soong/error_prone.go')
-rw-r--r-- | soong/error_prone.go | 11 |
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", } |