Files
datawave/checkstyle.xml
Laura Schanno 2148169543 Replace all usages of Accumulo Pair class (#3032)
Replace all usages of the class org.apache.accumulo.core.util.Pair class
with org.apache.commons.lang3.tuple.Pair. Additionally, add an
IllegalImport check to the maven checkstyle plugin configuration that
will explicitly forbid the use of the accumulo Pair class.

Fixes #3031
2025-07-14 11:37:03 +00:00

27 lines
1.1 KiB
XML

<?xml version="1.0"?>
<!DOCTYPE module PUBLIC "-//Puppy Crawl//DTD Check Configuration 1.3//EN" "http://www.puppycrawl.com/dtds/configuration_1_3.dtd">
<module name="Checker">
<property name="charset" value="UTF-8"/>
<property name="severity" value="info"/>
<property name="basedir" value="${basedir}"/>
<module name="TreeWalker">
<!--check that only Accumulo 2.1.x public APIs are imported-->
<module name="ImportControl">
<!--Allows per-package enforcement for importing Accumulo 2.1.x public APIs -->
<property name="file" value="${basedir}/import-control-accumulo.xml"/>
<property name="severity" value="warning"/>
</module>
<!-- Check that forbidden classes are not imported anywhere. -->
<module name="IllegalImport">
<property name="regexp" value="true"/>
<property name="illegalClasses"
value="^org\.apache\.accumulo\.core\.util\.Pair"/>
<property name="severity" value="error"/>
</module>
<!-- Do not allow any unused imports. -->
<module name="UnusedImports">
<property name="severity" value="error"/>
</module>
</module>
</module>