Fork me on GitHub

PMD Results

The following document contains the results of PMD 6.13.0.

Violations By Priority

Priority 3

fr/paris/lutece/plugins/recommendation/service/NoRecommenderException.java

Rule Violation Line
MissingSerialVersionUID Classes implementing Serializable should set a serialVersionUID 4046
CommentRequired Public method and constructor comments are required 4245

fr/paris/lutece/plugins/recommendation/service/RecommendationService.java

Rule Violation Line
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 87
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 101110
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 117
ConfusingTernary Avoid if (x != y) ..; else ..; 149167
AvoidInstanceofChecksInCatchClause An instanceof check is being performed on the caught exception. Create a separate catch clause for this exception type. 157
ConfusingTernary Avoid if (x != y) ..; else ..; 190219
ShortVariable Avoid variables with short names like pm 213

fr/paris/lutece/plugins/recommendation/web/RecommendationServlet.java

Rule Violation Line
MissingSerialVersionUID Classes implementing Serializable should set a serialVersionUID 60184
ShortVariable Avoid variables with short names like r 180

Files

fr/paris/lutece/plugins/recommendation/service/NoRecommenderException.java

Rule Violation Priority Line
MissingSerialVersionUID Classes implementing Serializable should set a serialVersionUID 3 4046
CommentRequired Public method and constructor comments are required 3 4245

fr/paris/lutece/plugins/recommendation/service/RecommendationService.java

Rule Violation Priority Line
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 87
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 3 101110
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 117
ConfusingTernary Avoid if (x != y) ..; else ..; 3 149167
AvoidInstanceofChecksInCatchClause An instanceof check is being performed on the caught exception. Create a separate catch clause for this exception type. 3 157
ConfusingTernary Avoid if (x != y) ..; else ..; 3 190219
ShortVariable Avoid variables with short names like pm 3 213

fr/paris/lutece/plugins/recommendation/web/RecommendationServlet.java

Rule Violation Priority Line
MissingSerialVersionUID Classes implementing Serializable should set a serialVersionUID 3 60184
ShortVariable Avoid variables with short names like r 3 180