<?xml version="1.0"?>

<ruleset name="String and StringBuffer"
    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>
These rules deal with different issues that can arise with manipulation of the String, StringBuffer, or StringBuilder instances.
  </description>

    <!-- Rules, that have been moved into a category -->
    <rule ref="category/java/errorprone.xml/AvoidDuplicateLiterals" deprecated="true" />
    <rule ref="category/java/errorprone.xml/StringBufferInstantiationWithChar" deprecated="true" />
    <rule ref="category/java/errorprone.xml/UnnecessaryCaseChange" deprecated="true" />
    <rule ref="category/java/errorprone.xml/UseEqualsToCompareStrings" deprecated="true" />

    <rule ref="category/java/bestpractices.xml/AvoidStringBufferField" deprecated="true" />

    <rule ref="category/java/performance.xml/AppendCharacterWithChar" deprecated="true" />
    <rule ref="category/java/performance.xml/ConsecutiveAppendsShouldReuse" deprecated="true" />
    <rule ref="category/java/performance.xml/ConsecutiveLiteralAppends" deprecated="true" />
    <rule ref="category/java/performance.xml/InefficientEmptyStringCheck" deprecated="true" />
    <rule ref="category/java/performance.xml/InefficientStringBuffering" deprecated="true" />
    <rule ref="category/java/performance.xml/InsufficientStringBufferDeclaration" deprecated="true" />
    <rule ref="category/java/performance.xml/StringInstantiation" deprecated="true" />
    <rule ref="category/java/performance.xml/StringToString" deprecated="true" />
    <rule ref="category/java/performance.xml/UseIndexOfChar" deprecated="true" />
    <rule ref="category/java/performance.xml/UselessStringValueOf" deprecated="true" />
    <rule ref="category/java/performance.xml/UseStringBufferLength" deprecated="true" />

</ruleset>
