1 <?xml version="1.0"?> 2 3 <ruleset name="42" 4 xmlns="http://pmd.sourceforge.net/ruleset/2.0.0" 5 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 6 xsi:schemaLocation="http://pmd.sourceforge.net/ruleset/2.0.0 https://pmd.sourceforge.io/ruleset_2_0_0.xsd"> 7 <description> 8 This ruleset contains links to rules that are new in PMD v4.2 9 </description> 10 11 <rule ref="rulesets/java/basic.xml/AvoidMultipleUnaryOperators"/> 12 <rule ref="rulesets/java/codesize.xml/TooManyMethods"/> 13 <rule ref="rulesets/java/controversial.xml/DoNotCallGarbageCollectionExplicitly"/> 14 <rule ref="rulesets/java/design.xml/ReturnEmptyArrayRatherThanNull"/> 15 <rule ref="rulesets/java/design.xml/AbstractClassWithoutAnyMethod"/> 16 <rule ref="rulesets/java/design.xml/TooFewBranchesForASwitchStatement"/> 17 <rule ref="rulesets/java/strictexception.xml/DoNotThrowExceptionInFinally"/> 18 <rule ref="rulesets/java/strings.xml/AvoidStringBufferField"/> 19 20 </ruleset> 21