Refine CompatChanges check and enable as error.
Because shifting newly written code over to using CompatChanges is
important, this change refines the recently added check and upgrades
it to become a fatal build error.
Bug: 169879376
Test: atest error_prone_android_framework_test
Change-Id: Ic3126518ebaac9995b8f649e44b839de30faa17f
diff --git a/services/Android.bp b/services/Android.bp
index ef52c2a..971f4dd 100644
--- a/services/Android.bp
+++ b/services/Android.bp
@@ -3,6 +3,11 @@
plugins: [
"error_prone_android_framework",
],
+ errorprone: {
+ javacflags: [
+ "-Xep:AndroidFrameworkCompatChange:ERROR",
+ ],
+ },
}
filegroup {