<?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 http://pmd.sourceforge.net/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>
