Skip to content

Commit 9157917

Browse files
committed
[java] Formatting of rule doc of AvoidReassigningCatchVariables
1 parent 9b6dcfe commit 9157917

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

pmd-java/src/main/resources/category/java/bestpractices.xml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,8 +218,11 @@ class Foo {
218218
externalInfoUrl="${pmd.website.baseurl}/pmd_rules_java_bestpractices.html#avoidreassigningcatchvariables">
219219
<description>
220220
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.
223226
</description>
224227
<priority>3</priority>
225228
<example><![CDATA[

0 commit comments

Comments
 (0)