diff --git a/hadoop-project/pom.xml b/hadoop-project/pom.xml
index 428be16dd16..da7ca46e4cf 100644
--- a/hadoop-project/pom.xml
+++ b/hadoop-project/pom.xml
@@ -1844,11 +1844,12 @@
true
${javac.version}
-
-
-
- 9999
-
+
+ -Xlint
+ -Xlint:unchecked
+ -Xmaxwarns
+ 9999
+