Use enabled: false to disable errorprone
Enabled: false is more performant than -XepDisableAllChecks,
as normally the module is built twice, once with and once
without errorprone. Enabled: false will entirely remove
the second build.
Bug: 190944875
Bug: 72714520
Change-Id: Ie393f41a33e59dc4fd36b98ca2fd87f53c0f9785
Test: Presumbits
diff --git a/ProtoLibraries.bp b/ProtoLibraries.bp
index 7e3cc27..db5ba2f 100644
--- a/ProtoLibraries.bp
+++ b/ProtoLibraries.bp
@@ -98,7 +98,7 @@
},
// Protos have lots of MissingOverride and similar.
errorprone: {
- javacflags: ["-XepDisableAllChecks"],
+ enabled: false,
},
}
@@ -124,6 +124,10 @@
"libs/incident/proto/android/os/**/*.proto",
":service-permission-protos",
],
+ // Protos have lots of MissingOverride and similar.
+ errorprone: {
+ enabled: false,
+ },
}
// ==== java proto device library (for test only) ==============================
@@ -150,7 +154,7 @@
sdk_version: "core_current",
// Protos have lots of MissingOverride and similar.
errorprone: {
- javacflags: ["-XepDisableAllChecks"],
+ enabled: false,
},
}