Enable -Xlint:unchecked
This makes the build report warnings for unchecked casts (e.g. such as
fixed in change I61fb5efa5).
Enabling these warnings hopefully helps with preventing introducing
unchecked casts in the future.
Release-Notes: skip
Signed-off-by: Edwin Kempin <ekempin@google.com>
Change-Id: I0684a80662524e8ba3357f6dd90f158e5b1ce165
diff --git a/tools/BUILD b/tools/BUILD
index a785c1b..68f013b 100644
--- a/tools/BUILD
+++ b/tools/BUILD
@@ -428,6 +428,7 @@
"-Xep:WrongOneof:ERROR",
"-Xep:XorPower:ERROR",
"-Xep:ZoneIdOfZ:ERROR",
+ "-Xlint:unchecked",
],
packages = ["error_prone_packages"],
)