Skip to content

Commit 65857ea

Browse files
authored
HADOOP-17513. Checkstyle IllegalImport does not catch guava imports (#2678)
Signed-off-by: Akira Ajisaka <aajisaka@apache.org>
1 parent 52217fc commit 65857ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hadoop-build-tools/src/main/resources/checkstyle/checkstyle.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@
121121
<!-- See http://checkstyle.sf.net/config_import.html -->
122122
<module name="IllegalImport">
123123
<property name="regexp" value="true"/>
124-
<property name="illegalPkgs" value="^sun\.[^.]+, ^com\.google\.common\.[^.]+"/>
124+
<property name="illegalPkgs" value="sun, com\.google\.common"/>
125125
<property name="illegalClasses" value="^org\.apache\.hadoop\.thirdparty\.com\.google\.common\.base\.(Optional|Function|Predicate|Supplier), ^org\.apache\.hadoop\.thirdparty\.com\.google\.common\.collect\.(ImmutableListMultimap)"/>
126126
</module>
127127
<module name="RedundantImport"/>

0 commit comments

Comments
 (0)