Fork me on GitHub

Résultats PMD

Le document suivant contient les résultats de PMD 5.5.1.

Fichiers

fr/paris/lutece/plugins/stock/modules/recommendation/service/BuildRecommendationsDaemon.java

Violation Ligne
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 Ligne
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 Ligne
A high number of imports can indicate a high degree of coupling within an object. 34360
Singleton is not thread safe 105136
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 Ligne
If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 71