PMD Results
The following document contains the results of PMD 5.5.1.
Files
fr/paris/lutece/plugins/stock/modules/recommendation/service/BuildRecommendationsDaemon.java
Violation |
Line |
StringBuffer constructor is initialized with size 16, but has at least 21 characters appended. |
48 |
fr/paris/lutece/plugins/stock/modules/recommendation/service/FilePurchaseDataWriter.java
Violation |
Line |
Private field '_file' could be made final; it is only initialized in the declaration or constructor. |
49 |
fr/paris/lutece/plugins/stock/modules/recommendation/service/StockRecommendationService.java
Violation |
Line |
A high number of imports can indicate a high degree of coupling within an object. |
34–360 |
Singleton is not thread safe |
105–136 |
Avoid using Literals in Conditional Statements |
123 |
This statement may have some unnecessary parentheses |
297 |
Consider simply returning the value vs storing it in local variable 'listAvailableProducts' |
299 |
StringBuffer (or StringBuilder).append is called 2 consecutive times with literal Strings. Use a single append with a single combined String. |
329 |
StringBuffer (or StringBuilder).append is called 2 consecutive times with literal Strings. Use a single append with a single combined String. |
329 |
StringBuffer (or StringBuilder).append is called 2 consecutive times with literal Strings. Use a single append with a single combined String. |
330 |
fr/paris/lutece/plugins/stock/modules/recommendation/web/RecommendationPageInclude.java
Violation |
Line |
If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation |
71 |