From 0623569b06a01cf9b5b7f6d113aaa766f18f6b85 Mon Sep 17 00:00:00 2001 From: Cole Faust Date: Mon, 15 Aug 2022 15:03:03 -0700 Subject: Promote array-related errorprone warnings to errors ArrayEquals, ArrayHashCode, ArrayToString, and ArraysAsListPrimitiveArray are errors by default, but until now had been demoted to warnings. Now that all occurances of them have been fixed, promote them to errors again. Bug: 242630963 Test: Presubmits (make sure the errorprone build is run) Change-Id: I0da226b1fb6acb7da378daab446fad565ec14aec --- soong/error_prone.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/soong/error_prone.go b/soong/error_prone.go index d65781a..dccf61e 100644 --- a/soong/error_prone.go +++ b/soong/error_prone.go @@ -113,10 +113,6 @@ func init() { // The checks that are not fatal to the build. config.ErrorProneChecksWarning = []string{ // Errorprone default severity ERROR - "-Xep:ArrayEquals:WARN", - "-Xep:ArrayHashCode:WARN", - "-Xep:ArrayToString:WARN", - "-Xep:ArraysAsListPrimitiveArray:WARN", "-Xep:BadAnnotationImplementation:WARN", "-Xep:BadShiftAmount:WARN", "-Xep:BanJNDI:WARN", -- cgit v1.2.3