Fork me on GitHub

Résultats PMD

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

Violations By Priority

Priority 1

fr/paris/lutece/plugins/menus/business/MenuItem.java

Rule Violation Ligne
FieldNamingConventions The final field name '_listItems' doesn't match '[a-z][a-zA-Z0-9]*' 49

Priority 3

fr/paris/lutece/plugins/menus/business/MenuItem.java

Rule Violation Ligne
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 49

fr/paris/lutece/plugins/menus/business/MenusDAO.java

Rule Violation Ligne
MissingOverride The method 'insert(Menus, Plugin)' is missing an @Override annotation. 90104
MissingOverride The method 'load(int, Plugin)' is missing an @Override annotation. 115137
MissingOverride The method 'delete(int, Plugin)' is missing an @Override annotation. 147153
MissingOverride The method 'store(Menus, Plugin)' is missing an @Override annotation. 163176
MissingOverride The method 'selectAll(Plugin)' is missing an @Override annotation. 185207
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 187
MissingOverride The method 'selectNbMenus(Plugin)' is missing an @Override annotation. 216231

fr/paris/lutece/plugins/menus/business/PageInfo.java

Rule Violation Ligne
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the PageInfo constructor if you want a default access modifier 5864
ShortVariable Avoid variables with short names like id 78

fr/paris/lutece/plugins/menus/service/MainTreeMenuService.java

Rule Violation Ligne
ConfusingTernary Avoid if (x != y) ..; else ..; 122131

fr/paris/lutece/plugins/menus/service/MenusPlugin.java

Rule Violation Ligne
MissingOverride The method 'init()' is missing an @Override annotation. 5154

fr/paris/lutece/plugins/menus/web/AccessibilityAnchorMenuInclude.java

Rule Violation Ligne
MissingOverride The method 'fillTemplate(Map, PageData, int, HttpServletRequest)' is missing an @Override annotation. 8398
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 111

fr/paris/lutece/plugins/menus/web/MainTreeMenuInclude.java

Rule Violation Ligne
MissingOverride The method 'fillTemplate(Map, PageData, int, HttpServletRequest)' is missing an @Override annotation. 86108
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 123
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 160

fr/paris/lutece/plugins/menus/web/MainTreeMenuIncludeAllPages.java

Rule Violation Ligne
MissingOverride The method 'fillTemplate(Map, PageData, int, HttpServletRequest)' is missing an @Override annotation. 86108
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 123
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 160

fr/paris/lutece/plugins/menus/web/MenusJspBean.java

Rule Violation Ligne
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 82
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 82

fr/paris/lutece/plugins/menus/web/TreeMenuPageInclude.java

Rule Violation Ligne
MissingOverride The method 'fillTemplate(Map, PageData, int, HttpServletRequest)' is missing an @Override annotation. 85117
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 205
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 205

fr/paris/lutece/plugins/menus/web/XPageMenuInclude.java

Rule Violation Ligne
MissingOverride The method 'fillTemplate(Map, PageData, int, HttpServletRequest)' is missing an @Override annotation. 8095
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 108
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 109

fr/paris/lutece/plugins/menus/web/rs/TreeMenuPagesRest.java

Rule Violation Ligne
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 112

Fichiers

fr/paris/lutece/plugins/menus/business/MenuItem.java

Rule Violation Priority Ligne
FieldNamingConventions The final field name '_listItems' doesn't match '[a-z][a-zA-Z0-9]*' 1 49
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 49

fr/paris/lutece/plugins/menus/business/MenusDAO.java

Rule Violation Priority Ligne
MissingOverride The method 'insert(Menus, Plugin)' is missing an @Override annotation. 3 90104
MissingOverride The method 'load(int, Plugin)' is missing an @Override annotation. 3 115137
MissingOverride The method 'delete(int, Plugin)' is missing an @Override annotation. 3 147153
MissingOverride The method 'store(Menus, Plugin)' is missing an @Override annotation. 3 163176
MissingOverride The method 'selectAll(Plugin)' is missing an @Override annotation. 3 185207
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 187
MissingOverride The method 'selectNbMenus(Plugin)' is missing an @Override annotation. 3 216231

fr/paris/lutece/plugins/menus/business/PageInfo.java

Rule Violation Priority Ligne
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the PageInfo constructor if you want a default access modifier 3 5864
ShortVariable Avoid variables with short names like id 3 78

fr/paris/lutece/plugins/menus/service/MainTreeMenuService.java

Rule Violation Priority Ligne
ConfusingTernary Avoid if (x != y) ..; else ..; 3 122131

fr/paris/lutece/plugins/menus/service/MenusPlugin.java

Rule Violation Priority Ligne
MissingOverride The method 'init()' is missing an @Override annotation. 3 5154

fr/paris/lutece/plugins/menus/web/AccessibilityAnchorMenuInclude.java

Rule Violation Priority Ligne
MissingOverride The method 'fillTemplate(Map, PageData, int, HttpServletRequest)' is missing an @Override annotation. 3 8398
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 111

fr/paris/lutece/plugins/menus/web/MainTreeMenuInclude.java

Rule Violation Priority Ligne
MissingOverride The method 'fillTemplate(Map, PageData, int, HttpServletRequest)' is missing an @Override annotation. 3 86108
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 123
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 160

fr/paris/lutece/plugins/menus/web/MainTreeMenuIncludeAllPages.java

Rule Violation Priority Ligne
MissingOverride The method 'fillTemplate(Map, PageData, int, HttpServletRequest)' is missing an @Override annotation. 3 86108
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 123
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 160

fr/paris/lutece/plugins/menus/web/MenusJspBean.java

Rule Violation Priority Ligne
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 82
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 82

fr/paris/lutece/plugins/menus/web/TreeMenuPageInclude.java

Rule Violation Priority Ligne
MissingOverride The method 'fillTemplate(Map, PageData, int, HttpServletRequest)' is missing an @Override annotation. 3 85117
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 205
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 205

fr/paris/lutece/plugins/menus/web/XPageMenuInclude.java

Rule Violation Priority Ligne
MissingOverride The method 'fillTemplate(Map, PageData, int, HttpServletRequest)' is missing an @Override annotation. 3 8095
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 108
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 109

fr/paris/lutece/plugins/menus/web/rs/TreeMenuPagesRest.java

Rule Violation Priority Ligne
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 112