diff --git a/hadoop-project/pom.xml b/hadoop-project/pom.xml
index d91131e6b98..b74b2e316ea 100644
--- a/hadoop-project/pom.xml
+++ b/hadoop-project/pom.xml
@@ -2283,11 +2283,11 @@
true
${javac.version}
-
-
-
- 9999
-
+
+ -Xlint
+ -Xlint:unchecked
+ -Xmaxwarns=9999
+