All Downloads are FREE. Search and download functionalities are using the official Maven repository.

rulesets.java.clone.xml Maven / Gradle / Ivy

There is a newer version: 7.7.0
Show newest version
<?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>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy