rulesets.java.optimizations.xml Maven / Gradle / Ivy
<?xml version="1.0"?> <ruleset name="Optimization" 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> These rules deal with different optimizations that generally apply to best practices. </description> <!-- Rules, that have been moved into a category --> <rule ref="category/java/codestyle.xml/LocalVariableCouldBeFinal" deprecated="true" /> <rule ref="category/java/codestyle.xml/MethodArgumentCouldBeFinal" deprecated="true" /> <rule ref="category/java/codestyle.xml/PrematureDeclaration" deprecated="true" /> <rule ref="category/java/performance.xml/AddEmptyString" deprecated="true" /> <rule ref="category/java/performance.xml/AvoidArrayLoops" deprecated="true" /> <rule ref="category/java/performance.xml/AvoidInstantiatingObjectsInLoops" deprecated="true" /> <rule ref="category/java/performance.xml/RedundantFieldInitializer" deprecated="true" /> <!-- <rule ref="category/java/performance.xml/SimplifyStartsWith" deprecated="true" />--> <!-- <rule ref="category/java/performance.xml/UnnecessaryWrapperObjectCreation" deprecated="true" />--> <rule ref="category/java/performance.xml/UseArrayListInsteadOfVector" deprecated="true" /> <rule ref="category/java/performance.xml/UseArraysAsList" deprecated="true" /> <rule ref="category/java/performance.xml/UseStringBufferForStringAppends" deprecated="true" /> </ruleset>