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
This commit is contained in:
Cole Faust
2021-06-19 00:54:23 +00:00
parent 6946bccacd
commit 2fd661b283

View File

@@ -98,7 +98,7 @@ java_library_host {
},
// Protos have lots of MissingOverride and similar.
errorprone: {
javacflags: ["-XepDisableAllChecks"],
enabled: false,
},
}
@@ -124,6 +124,10 @@ java_library {
"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 @@ java_library {
sdk_version: "core_current",
// Protos have lots of MissingOverride and similar.
errorprone: {
javacflags: ["-XepDisableAllChecks"],
enabled: false,
},
}