PMD Results

The following document contains the results of PMD .

Summary

FilesErrors
946

Files

FilesViolations
org/apache/commons/jelly/tags/fmt/BundleTag.java 7
org/apache/commons/jelly/tags/fmt/Config.java 1
org/apache/commons/jelly/tags/fmt/FormatDateTag.java 9
org/apache/commons/jelly/tags/fmt/MessageTag.java 8
org/apache/commons/jelly/tags/fmt/ParamTag.java 2
org/apache/commons/jelly/tags/fmt/SetBundleTag.java 3
org/apache/commons/jelly/tags/fmt/SetLocaleTag.java 8
org/apache/commons/jelly/tags/fmt/SetTimeZoneTag.java 3
org/apache/commons/jelly/tags/fmt/TimeZoneTag.java 5

org/apache/commons/jelly/tags/fmt/BundleTag.java

ViolationLine
Avoid unused imports such as 'Enumeration' 23
The class 'BundleTag' has a Cyclomatic Complexity of 3 (Highest = 13). 37
The method 'getLocalizationContext' has a Cyclomatic Complexity of 13. 159
Avoid empty catch blocks 210
Avoid if (x != y) ..; else ..; 213
Avoid empty 'if' statements 215
Avoid empty catch blocks 277

org/apache/commons/jelly/tags/fmt/Config.java

ViolationLine
Avoid unused imports such as 'JellyContext' 19

org/apache/commons/jelly/tags/fmt/FormatDateTag.java

ViolationLine
Avoid unused imports such as 'Tag' 20
The class 'FormatDateTag' has a Cyclomatic Complexity of 3 (Highest = 20). 40
Avoid really long methods. 91
The method 'doTag' has a Cyclomatic Complexity of 20. 91
Avoid if (x != y) ..; else ..; 109
Avoid if (x != y) ..; else ..; 150
Avoid if (x != y) ..; else ..; 168
Avoid if (x != y) ..; else ..; 188
Avoid if (x != y) ..; else ..; 189

org/apache/commons/jelly/tags/fmt/MessageTag.java

ViolationLine
The class 'MessageTag' has a Cyclomatic Complexity of 3 (Highest = 16). 40
The method 'doTag' has a Cyclomatic Complexity of 16. 67
Avoid if (x != y) ..; else ..; 70
Avoid if (x != y) ..; else ..; 101
Avoid empty 'if' statements 111
Avoid if (x != y) ..; else ..; 145
Avoid if (x != y) ..; else ..; 146
Avoid if (x != y) ..; else ..; 154

org/apache/commons/jelly/tags/fmt/ParamTag.java

ViolationLine
Avoid if (x != y) ..; else ..; 48
Avoid if (x != y) ..; else ..; 56

org/apache/commons/jelly/tags/fmt/SetBundleTag.java

ViolationLine
Avoid unused imports such as 'Locale' 22
Avoid if (x != y) ..; else ..; 56
Avoid if (x != y) ..; else ..; 58

org/apache/commons/jelly/tags/fmt/SetLocaleTag.java

ViolationLine
The class 'SetLocaleTag' has a Cyclomatic Complexity of 4 (Highest = 11). 34
Avoid if (x != y) ..; else ..; 77
Avoid if (x != y) ..; else ..; 144
Avoid if (x != y) ..; else ..; 149
The method 'getFormattingLocale' has a Cyclomatic Complexity of 11. 208
Avoid empty 'if' statements 224
Avoid empty 'if' statements 234
Avoid empty 'if' statements 259

org/apache/commons/jelly/tags/fmt/SetTimeZoneTag.java

ViolationLine
Avoid unused imports such as 'Tag' 20
Avoid unused private fields such as 'var' 36
Avoid if (x != y) ..; else ..; 70

org/apache/commons/jelly/tags/fmt/TimeZoneTag.java

ViolationLine
Avoid unused imports such as 'Enumeration' 24
Avoid unused imports such as 'Locale' 25
Avoid unused imports such as 'ResourceBundle' 26
Avoid unused imports such as 'MissingResourceException' 27
Avoid if (x != y) ..; else ..; 115