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. 68–84
MissingOverride The method 'load(int, Plugin)' is missing an @Override annotation. 95–115
MissingOverride The method 'delete(int, Plugin)' is missing an @Override annotation. 125–132
MissingOverride The method 'store(RegularExpression, Plugin)' is missing an @Override annotation. 142–154
MissingOverride The method 'selectListRegularExpression(Plugin)' is missing an @Override annotation. 163–183

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

Rule Violation Line
CommentRequired Header comments are required 38–50

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

Rule Violation Line
MissingOverride The method 'isPatternValide(String)' is missing an @Override annotation. 64–76
MissingOverride The method 'isPatternValide(RegularExpression)' is missing an @Override annotation. 85–97
MissingOverride The method 'isMatches(String, String)' is missing an @Override annotation. 108–124
MissingOverride The method 'isMatches(String, RegularExpression)' is missing an @Override annotation. 135–151
MissingOverride The method 'getRegularExpressionByKey(int)' is missing an @Override annotation. 160–163
MissingOverride The method 'getAllRegularExpression()' is missing an @Override annotation. 204–207

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 ..; 215–231
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 ..; 258–274
NPathComplexity The method 'getRegularExpressionData(HttpServletRequest, RegularExpression)' has an NPath complexity of 1536 367–434
CyclomaticComplexity The method 'getRegularExpressionData(HttpServletRequest, RegularExpression)' has a cyclomatic complexity of 14. 367–434
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 68–84
MissingOverride The method 'load(int, Plugin)' is missing an @Override annotation. 3 95–115
MissingOverride The method 'delete(int, Plugin)' is missing an @Override annotation. 3 125–132
MissingOverride The method 'store(RegularExpression, Plugin)' is missing an @Override annotation. 3 142–154
MissingOverride The method 'selectListRegularExpression(Plugin)' is missing an @Override annotation. 3 163–183

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

Rule Violation Priority Line
CommentRequired Header comments are required 3 38–50

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

Rule Violation Priority Line
MissingOverride The method 'isPatternValide(String)' is missing an @Override annotation. 3 64–76
MissingOverride The method 'isPatternValide(RegularExpression)' is missing an @Override annotation. 3 85–97
MissingOverride The method 'isMatches(String, String)' is missing an @Override annotation. 3 108–124
MissingOverride The method 'isMatches(String, RegularExpression)' is missing an @Override annotation. 3 135–151
MissingOverride The method 'getRegularExpressionByKey(int)' is missing an @Override annotation. 3 160–163
MissingOverride The method 'getAllRegularExpression()' is missing an @Override annotation. 3 204–207

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 215–231
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 258–274
NPathComplexity The method 'getRegularExpressionData(HttpServletRequest, RegularExpression)' has an NPath complexity of 1536 3 367–434
CyclomaticComplexity The method 'getRegularExpressionData(HttpServletRequest, RegularExpression)' has a cyclomatic complexity of 14. 3 367–434
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 369