Fork me on GitHub

PMD Results

The following document contains the results of PMD 5.3.5.

Files

fr/paris/lutece/plugins/html/modules/rest/rs/HtmlPortletRest.java

Violation Line
The class 'HtmlPortletRest' has a Cyclomatic Complexity of 4 (Highest = 11). 75271
If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 88
Avoid variables with short names like t 91
StringBuffer constructor is initialized with size 16, but has at least 45 characters appended. 102
Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 119
Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 163
Rather than using a lot of String arguments, consider using a container object for those values. 174183
The method 'createPortlet' has a Cyclomatic Complexity of 11. 174248
Avoid reassigning parameters such as 'strPageId' 176
Avoid reassigning parameters such as 'strName' 177
Avoid reassigning parameters such as 'strStyleId' 178
Avoid reassigning parameters such as 'strColumn' 179
Avoid reassigning parameters such as 'strOrder' 180
Avoid reassigning parameters such as 'strAcceptAlias' 181
Avoid reassigning parameters such as 'strDisplayPortletTitle' 182
Avoid empty if statements 212214
StringBuffer (or StringBuilder).append is called 2 consecutive times with literal Strings. Use a single append with a single combined String. 257
StringBuffer (or StringBuilder).append is called 2 consecutive times with literal Strings. Use a single append with a single combined String. 258
StringBuffer (or StringBuilder).append is called 2 consecutive times with literal Strings. Use a single append with a single combined String. 259
StringBuffer (or StringBuilder).append is called 2 consecutive times with literal Strings. Use a single append with a single combined String. 260
StringBuffer (or StringBuilder).append is called 2 consecutive times with literal Strings. Use a single append with a single combined String. 262
StringBuffer (or StringBuilder).append is called 2 consecutive times with literal Strings. Use a single append with a single combined String. 263
StringBuffer (or StringBuilder).append is called 2 consecutive times with literal Strings. Use a single append with a single combined String. 264
StringBuffer (or StringBuilder).append is called 2 consecutive times with literal Strings. Use a single append with a single combined String. 265
StringBuffer (or StringBuilder).append is called 2 consecutive times with literal Strings. Use a single append with a single combined String. 266
StringBuffer (or StringBuilder).append is called 2 consecutive times with literal Strings. Use a single append with a single combined String. 267
StringBuffer (or StringBuilder).append is called 2 consecutive times with literal Strings. Use a single append with a single combined String. 268