The following document contains the results of PMD 6.13.0.
| Rule | Violation | Line |
|---|---|---|
| FieldNamingConventions | The final field name '_myPortalMyAppsService' doesn't match '[a-z][a-zA-Z0-9]*' | 149 |
| FieldNamingConventions | The final field name '_widgetContentService' doesn't match '[a-z][a-zA-Z0-9]*' | 150 |
| Rule | Violation | Line |
|---|---|---|
| ConfusingTernary | Avoid if (x != y) ..; else ..; | 122 |
| ConfusingTernary | Avoid if (x != y) ..; else ..; | 123 |
| ConfusingTernary | Avoid if (x != y) ..; else ..; | 124 |
| UseDiamondOperator | Explicit type arguments can be replaced by Diamond Operator | 129 |
| UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 129 |
| ConfusingTernary | Avoid if (x != y) ..; else ..; | 132 |
| Rule | Violation | Line |
|---|---|---|
| ExcessiveImports | A high number of imports can indicate a high degree of coupling within an object. | 34–639 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 167 |
| UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 188 |
| UseDiamondOperator | Explicit type arguments can be replaced by Diamond Operator | 188 |
| ConfusingTernary | Avoid if (x != y) ..; else ..; | 232–259 |
| UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 239 |
| UseDiamondOperator | Explicit type arguments can be replaced by Diamond Operator | 239 |
| UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 287 |
| UseDiamondOperator | Explicit type arguments can be replaced by Diamond Operator | 287 |
| ConfusingTernary | Avoid if (x != y) ..; else ..; | 354–385 |
| UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 361 |
| UseDiamondOperator | Explicit type arguments can be replaced by Diamond Operator | 361 |
| UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 412 |
| UseDiamondOperator | Explicit type arguments can be replaced by Diamond Operator | 412 |
| UseDiamondOperator | Explicit type arguments can be replaced by Diamond Operator | 514 |
| UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 514 |
| CyclomaticComplexity | The method 'getMyAppsDatabaseUserInfo(HttpServletRequest, LuteceUser, Plugin)' has a cyclomatic complexity of 16. | 592–638 |
| ConfusingTernary | Avoid if (x != y) ..; else ..; | 622 |
| ConfusingTernary | Avoid if (x != y) ..; else ..; | 623 |
| ConfusingTernary | Avoid if (x != y) ..; else ..; | 624 |
| Rule | Violation | Line |
|---|---|---|
| ConfusingTernary | Avoid if (x != y) ..; else ..; | 106–131 |
| AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 121 |
| ConfusingTernary | Avoid if (x != y) ..; else ..; | 157–182 |
| AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 172 |
| Rule | Violation | Priority | Line |
|---|---|---|---|
| ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 122 |
| ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 123 |
| ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 124 |
| UseDiamondOperator | Explicit type arguments can be replaced by Diamond Operator | 3 | 129 |
| UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 129 |
| ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 132 |
| Rule | Violation | Priority | Line |
|---|---|---|---|
| ExcessiveImports | A high number of imports can indicate a high degree of coupling within an object. | 3 | 34–639 |
| FieldNamingConventions | The final field name '_myPortalMyAppsService' doesn't match '[a-z][a-zA-Z0-9]*' | 1 | 149 |
| FieldNamingConventions | The final field name '_widgetContentService' doesn't match '[a-z][a-zA-Z0-9]*' | 1 | 150 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 167 |
| UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 188 |
| UseDiamondOperator | Explicit type arguments can be replaced by Diamond Operator | 3 | 188 |
| ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 232–259 |
| UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 239 |
| UseDiamondOperator | Explicit type arguments can be replaced by Diamond Operator | 3 | 239 |
| UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 287 |
| UseDiamondOperator | Explicit type arguments can be replaced by Diamond Operator | 3 | 287 |
| ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 354–385 |
| UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 361 |
| UseDiamondOperator | Explicit type arguments can be replaced by Diamond Operator | 3 | 361 |
| UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 412 |
| UseDiamondOperator | Explicit type arguments can be replaced by Diamond Operator | 3 | 412 |
| UseDiamondOperator | Explicit type arguments can be replaced by Diamond Operator | 3 | 514 |
| UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 514 |
| CyclomaticComplexity | The method 'getMyAppsDatabaseUserInfo(HttpServletRequest, LuteceUser, Plugin)' has a cyclomatic complexity of 16. | 3 | 592–638 |
| ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 622 |
| ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 623 |
| ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 624 |
| Rule | Violation | Priority | Line |
|---|---|---|---|
| ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 106–131 |
| AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 3 | 121 |
| ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 157–182 |
| AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 3 | 172 |