Skip to content

Commit d13b2de

Browse files
committed
Changes for PMD 7.7
1 parent eeb917d commit d13b2de

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.config/pmd/ruleset.xml

+7
Original file line numberDiff line numberDiff line change
@@ -151,5 +151,12 @@
151151
<exclude name="UseStringBufferForStringAppends"/>
152152
</rule>
153153

154+
<rule ref="category/java/performance.xml/TooFewBranchesForSwitch">
155+
<properties>
156+
<!-- If you have one case only please use a if -->
157+
<property name="minimumNumberCaseForASwitch" value="2"/>
158+
</properties>
159+
</rule>
160+
154161
<rule ref="category/java/security.xml"/>
155162
</ruleset>

0 commit comments

Comments
 (0)