rulesets.java.clone.xml Maven / Gradle / Ivy
<?xml version="1.0"?> <ruleset name="Clone Implementation" xmlns="http://pmd.sourceforge.net/ruleset/2.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://pmd.sourceforge.net/ruleset/2.0.0 https://pmd.sourceforge.io/ruleset_2_0_0.xsd"> <description> The Clone Implementation ruleset contains a collection of rules that find questionable usages of the clone() method. </description> <!-- Rules, that have been moved into a category --> <rule ref="category/java/errorprone.xml/CloneMethodMustBePublic" deprecated="true" /> <rule ref="category/java/errorprone.xml/CloneMethodMustImplementCloneable" deprecated="true" /> <rule ref="category/java/errorprone.xml/CloneMethodReturnTypeMustMatchClassName" deprecated="true" /> <!-- <rule ref="category/java/errorprone.xml/CloneThrowsCloneNotSupportedException" deprecated="true" />--> <rule ref="category/java/errorprone.xml/ProperCloneImplementation" deprecated="true" /> </ruleset>