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/regularexpression/business/RegularExpressionDAO.java

Rule Violation Line
MissingOverride The method 'insert(RegularExpression, Plugin)' is missing an @Override annotation. 89102
MissingOverride The method 'load(int, Plugin)' is missing an @Override annotation. 113133
MissingOverride The method 'delete(int, Plugin)' is missing an @Override annotation. 143150
MissingOverride The method 'store(RegularExpression, Plugin)' is missing an @Override annotation. 160173
MissingOverride The method 'selectListRegularExpression(Plugin)' is missing an @Override annotation. 182202

fr/paris/lutece/plugins/regularexpression/service/RegularExpressionPlugin.java

Rule Violation Line
CommentRequired Header comments are required 3850

fr/paris/lutece/plugins/regularexpression/service/RegularExpressionService.java

Rule Violation Line
MissingOverride The method 'isPatternValide(String)' is missing an @Override annotation. 6173
MissingOverride The method 'isPatternValide(RegularExpression)' is missing an @Override annotation. 8294
MissingOverride The method 'isMatches(String, String)' is missing an @Override annotation. 105121
MissingOverride The method 'isMatches(String, RegularExpression)' is missing an @Override annotation. 132148
MissingOverride The method 'getRegularExpressionByKey(int)' is missing an @Override annotation. 157162
MissingOverride The method 'getAllRegularExpression()' is missing an @Override annotation. 169174

fr/paris/lutece/plugins/regularexpression/web/RegularExpressionJspBean.java

Rule Violation Line
ImmutableField Private field '_nDefaultItemsPerPage' could be made final; it is only initialized in the declaration or constructor. 123
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 138
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 166
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 207
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 208
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 209
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 211
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 211
ConfusingTernary Avoid if (x != y) ..; else ..; 215231
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 253
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 254
ConfusingTernary Avoid if (x != y) ..; else ..; 258274
NPathComplexity The method 'getRegularExpressionData(HttpServletRequest, RegularExpression)' has an NPath complexity of 1536 367434
CyclomaticComplexity The method 'getRegularExpressionData(HttpServletRequest, RegularExpression)' has a cyclomatic complexity of 14. 367434
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 369

Files

fr/paris/lutece/plugins/regularexpression/business/RegularExpressionDAO.java

Rule Violation Priority Line
MissingOverride The method 'insert(RegularExpression, Plugin)' is missing an @Override annotation. 3 89102
MissingOverride The method 'load(int, Plugin)' is missing an @Override annotation. 3 113133
MissingOverride The method 'delete(int, Plugin)' is missing an @Override annotation. 3 143150
MissingOverride The method 'store(RegularExpression, Plugin)' is missing an @Override annotation. 3 160173
MissingOverride The method 'selectListRegularExpression(Plugin)' is missing an @Override annotation. 3 182202

fr/paris/lutece/plugins/regularexpression/service/RegularExpressionPlugin.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 3850

fr/paris/lutece/plugins/regularexpression/service/RegularExpressionService.java

Rule Violation Priority Line
MissingOverride The method 'isPatternValide(String)' is missing an @Override annotation. 3 6173
MissingOverride The method 'isPatternValide(RegularExpression)' is missing an @Override annotation. 3 8294
MissingOverride The method 'isMatches(String, String)' is missing an @Override annotation. 3 105121
MissingOverride The method 'isMatches(String, RegularExpression)' is missing an @Override annotation. 3 132148
MissingOverride The method 'getRegularExpressionByKey(int)' is missing an @Override annotation. 3 157162
MissingOverride The method 'getAllRegularExpression()' is missing an @Override annotation. 3 169174

fr/paris/lutece/plugins/regularexpression/web/RegularExpressionJspBean.java

Rule Violation Priority Line
ImmutableField Private field '_nDefaultItemsPerPage' could be made final; it is only initialized in the declaration or constructor. 3 123
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 138
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 166
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 207
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 208
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 209
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 211
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 211
ConfusingTernary Avoid if (x != y) ..; else ..; 3 215231
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 253
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 254
ConfusingTernary Avoid if (x != y) ..; else ..; 3 258274
NPathComplexity The method 'getRegularExpressionData(HttpServletRequest, RegularExpression)' has an NPath complexity of 1536 3 367434
CyclomaticComplexity The method 'getRegularExpressionData(HttpServletRequest, RegularExpression)' has a cyclomatic complexity of 14. 3 367434
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 369