File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
pmd-java/src/main/resources/category/java Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -218,8 +218,11 @@ class Foo {
218
218
externalInfoUrl =" ${pmd.website.baseurl}/pmd_rules_java_bestpractices.html#avoidreassigningcatchvariables" >
219
219
<description >
220
220
Reassigning exception variables caught in a catch statement should be avoided because of:
221
- 1) If it is needed, multi catch can be easily added and code will still compile
222
- 2) Following the principle of least surprise we want to make sure that a variable caught in a catch statement is always the one thrown in a try block
221
+
222
+ 1) If it is needed, multi catch can be easily added and code will still compile.
223
+
224
+ 2) Following the principle of least surprise we want to make sure that a variable caught in a catch statement
225
+ is always the one thrown in a try block.
223
226
</description >
224
227
<priority >3</priority >
225
228
<example ><![CDATA[
You can’t perform that action at this time.
0 commit comments