HADOOP-17513. Checkstyle IllegalImport does not catch guava imports (#2678)
Signed-off-by: Akira Ajisaka <aajisaka@apache.org>
This commit is contained in:
parent
52217fce3d
commit
65857ea7c0
@ -121,7 +121,7 @@
|
|||||||
<!-- See http://checkstyle.sf.net/config_import.html -->
|
<!-- See http://checkstyle.sf.net/config_import.html -->
|
||||||
<module name="IllegalImport">
|
<module name="IllegalImport">
|
||||||
<property name="regexp" value="true"/>
|
<property name="regexp" value="true"/>
|
||||||
<property name="illegalPkgs" value="^sun\.[^.]+, ^com\.google\.common\.[^.]+"/>
|
<property name="illegalPkgs" value="sun, com\.google\.common"/>
|
||||||
<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)"/>
|
<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)"/>
|
||||||
</module>
|
</module>
|
||||||
<module name="RedundantImport"/>
|
<module name="RedundantImport"/>
|
||||||
|
Loading…
Reference in New Issue
Block a user