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

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

There is a newer version: 7.5.0
Show newest version
<?xml version="1.0"?>

<ruleset name="Unnecessary"
    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 Unnecessary Ruleset contains a collection of rules for unnecessary code.
  </description>

    <!-- Rules, that have been moved into a category -->
    <rule ref="category/java/errorprone.xml/UnnecessaryConversionTemporary" deprecated="true" />
    <rule ref="category/java/errorprone.xml/UnusedNullCheckInEquals" deprecated="true" />
    <rule ref="category/java/errorprone.xml/UselessOperationOnImmutable" deprecated="true" />

    <rule ref="category/java/codestyle.xml/UnnecessaryModifier" deprecated="true" />
    <rule ref="category/java/codestyle.xml/UnnecessaryReturn" deprecated="true" />
    <rule ref="category/java/codestyle.xml/UselessParentheses" deprecated="true" />
    <rule ref="category/java/codestyle.xml/UselessQualifiedThis" deprecated="true" />

    <rule ref="category/java/design.xml/UselessOverridingMethod" deprecated="true" />

    <!-- Rule has been renamed -->
    <rule ref="category/java/codestyle.xml/UnnecessaryModifier" name="UnnecessaryFinalModifier" deprecated="true" />

</ruleset>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy