From 89f2c1db33a7a2980e9b0e464345fb9cefc46171 Mon Sep 17 00:00:00 2001 From: Manu Sridharan Date: Wed, 28 Sep 2022 20:36:21 -0700 Subject: [PATCH] Fix -XepDisableAllWarnings flag --- .../java/com/google/errorprone/scanner/ScannerSupplier.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/check_api/src/main/java/com/google/errorprone/scanner/ScannerSupplier.java b/check_api/src/main/java/com/google/errorprone/scanner/ScannerSupplier.java index 037b2c1f597..731c86d581e 100644 --- a/check_api/src/main/java/com/google/errorprone/scanner/ScannerSupplier.java +++ b/check_api/src/main/java/com/google/errorprone/scanner/ScannerSupplier.java @@ -143,7 +143,8 @@ public ScannerSupplier applyOverrides(ErrorProneOptions errorProneOptions) { && errorProneOptions.getFlags().isEmpty() && !errorProneOptions.isEnableAllChecksAsWarnings() && !errorProneOptions.isDropErrorsToWarnings() - && !errorProneOptions.isDisableAllChecks()) { + && !errorProneOptions.isDisableAllChecks() + && !errorProneOptions.isDisableAllWarnings()) { return this; }