AMBARI-21701. Add check for import from relocated packages

Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/8895386b
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/8895386b
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/8895386b

Branch: refs/heads/branch-feature-logsearch-ui
Commit: 8895386bcc7b122788ae2af42031ff0e786c7733
Parents: 7a3ffea
Author: Attila Doroszlai <adorosz...@hortonworks.com>
Authored: Thu Aug 10 15:40:56 2017 +0200
Committer: Attila Doroszlai <adorosz...@hortonworks.com>
Committed: Thu Aug 10 16:50:45 2017 +0200

----------------------------------------------------------------------
 ambari-server/checkstyle.xml | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/8895386b/ambari-server/checkstyle.xml
----------------------------------------------------------------------
diff --git a/ambari-server/checkstyle.xml b/ambari-server/checkstyle.xml
index fb314bc..f1fc3a1 100644
--- a/ambari-server/checkstyle.xml
+++ b/ambari-server/checkstyle.xml
@@ -23,7 +23,9 @@
 
     <!-- imports -->
     <module name="AvoidStarImport"/>
-    <module name="IllegalImport"/>
+    <module name="IllegalImport">
+      <property name="illegalPkgs" value="sun, 
org.apache.hadoop.metrics2.sink.relocated"/>
+    </module>
     <module name="ImportOrder">
       <property name="groups" value="java,javax,org,com,*"/>
       <property name="ordered" value="true"/>

Reply via email to