[ 
https://issues.apache.org/jira/browse/HADOOP-17513?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17282795#comment-17282795
 ] 

Akira Ajisaka commented on HADOOP-17513:
----------------------------------------

bq. I suggest that automatic import replacement gets removed from the build so 
that patches do not get changes without the developers' knowledge.

Agreed. This automatic import replacement is required for the sources generated 
by protocol buffers, but it is not necessary for all the sources. Probably 
removing the lines 
(https://github.com/apache/hadoop/blob/a43fd648573df62214ac3f3d148e9226c904f785/hadoop-project/pom.xml#L2003-L2063)
 should work.

Hi [~vinayakumarb], what do you think?

> Checkstyle IllegalImport does not catch guava imports
> -----------------------------------------------------
>
>                 Key: HADOOP-17513
>                 URL: https://issues.apache.org/jira/browse/HADOOP-17513
>             Project: Hadoop Common
>          Issue Type: Bug
>            Reporter: Ahmed Hussein
>            Assignee: Ahmed Hussein
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 3.4.0
>
>          Time Spent: 1h 40m
>  Remaining Estimate: 0h
>
> Although YARN-10352 introduces {{guava iterator import}}, it was committed to 
> trunk without checkstyle errors.
> According to [IllegalImportCheck#setIllegalPkgs 
> |https://github.com/checkstyle/checkstyle/blob/master/src/main/java/com/puppycrawl/tools/checkstyle/checks/imports/IllegalImportCheck.java],
>  the packages regex should be the prefix of the package. The code 
> automatically append {{\.*}} to the regex.
> CC: [~aajisaka]
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to