Fork me on GitHub

Résultats PMD

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

Violations By Priority

Priority 3

fr/paris/lutece/plugins/updatercatalog/business/CatalogDAO.java

Rule Violation Ligne
MissingOverride The method 'insert(Catalog, Plugin)' is missing an @Override annotation. 93108
MissingOverride The method 'load(int, Plugin)' is missing an @Override annotation. 116139
MissingOverride The method 'delete(int, Plugin)' is missing an @Override annotation. 146152
MissingOverride The method 'store(Catalog, Plugin)' is missing an @Override annotation. 159173
MissingOverride The method 'selectCatalogsList(Plugin)' is missing an @Override annotation. 180203
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 182
MissingOverride The method 'selectPluginsEntries(int, Plugin)' is missing an @Override annotation. 211241
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 213
MissingOverride The method 'addRelease(int, int, Plugin)' is missing an @Override annotation. 274283
MissingOverride The method 'removeRelease(int, int, Plugin)' is missing an @Override annotation. 291300

fr/paris/lutece/plugins/updatercatalog/business/CatalogPlugin.java

Rule Violation Ligne
ShortVariable Avoid variables with short names like o 144
MissingOverride The method 'compareTo(Object)' is missing an @Override annotation. 144149

fr/paris/lutece/plugins/updatercatalog/business/CatalogPluginDAO.java

Rule Violation Ligne
MissingOverride The method 'insert(CatalogPlugin, Plugin)' is missing an @Override annotation. 6678
MissingOverride The method 'load(String, String, Plugin)' is missing an @Override annotation. 87110
MissingOverride The method 'delete(String, String, Plugin)' is missing an @Override annotation. 118125
MissingOverride The method 'store(CatalogPlugin, Plugin)' is missing an @Override annotation. 132146
MissingOverride The method 'selectCatalogPluginsList(Plugin)' is missing an @Override annotation. 153175
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 155
MissingOverride The method 'selectPluginsListByLocale(Plugin, String)' is missing an @Override annotation. 183198
MissingOverride The method 'selectAvailablePluginsByLocale(Plugin, String)' is missing an @Override annotation. 206231
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 208
MissingOverride The method 'getPlugins(Plugin)' is missing an @Override annotation. 238253

fr/paris/lutece/plugins/updatercatalog/business/CatalogPluginEntry.java

Rule Violation Ligne
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 56
ImmutableField Private field '_listUpgrades' could be made final; it is only initialized in the declaration or constructor. 56
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the addUpgrade method if you want a default access modifier 251254
DefaultPackage Use explicit scoping instead of the default package private level 251254

fr/paris/lutece/plugins/updatercatalog/business/PluginRelease.java

Rule Violation Ligne
ImmutableField Private field '_listUpgrades' could be made final; it is only initialized in the declaration or constructor. 52
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 52
DefaultPackage Use explicit scoping instead of the default package private level 166169
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the addUpgrade method if you want a default access modifier 166169
ShortVariable Avoid variables with short names like o 185
MissingOverride The method 'compareTo(Object)' is missing an @Override annotation. 185197

fr/paris/lutece/plugins/updatercatalog/business/PluginReleaseDAO.java

Rule Violation Ligne
MissingOverride The method 'insert(PluginRelease, Plugin)' is missing an @Override annotation. 93108
MissingOverride The method 'load(int, Plugin)' is missing an @Override annotation. 116144
MissingOverride The method 'delete(int, Plugin)' is missing an @Override annotation. 151172
MissingOverride The method 'store(PluginRelease, Plugin)' is missing an @Override annotation. 179193
MissingOverride The method 'selectPluginReleasesList(Plugin)' is missing an @Override annotation. 200223
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 202
MissingOverride The method 'addUpgrade(int, ReleaseUpgrade, Plugin)' is missing an @Override annotation. 234245
MissingOverride The method 'deleteUpgrade(int, String, Plugin)' is missing an @Override annotation. 253260

fr/paris/lutece/plugins/updatercatalog/web/CatalogJspBean.java

Rule Violation Ligne
GodClass Possible God Class (WMC=79, ATFD=104, TCC=19.251%) 64803
MissingSerialVersionUID Classes implementing Serializable should set a serialVersionUID 64803
TooManyMethods This class has too many methods, consider refactoring it. 65803
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 176
ForLoopCanBeForeach This for loop can be replaced by a foreach loop 219223
CyclomaticComplexity The method 'getData(HttpServletRequest, Catalog)' has a cyclomatic complexity of 11. 329352
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 497
CyclomaticComplexity The method 'getPluginData(HttpServletRequest, CatalogPlugin)' has a cyclomatic complexity of 11. 644666
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 725
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 752

Fichiers

fr/paris/lutece/plugins/updatercatalog/business/CatalogDAO.java

Rule Violation Priority Ligne
MissingOverride The method 'insert(Catalog, Plugin)' is missing an @Override annotation. 3 93108
MissingOverride The method 'load(int, Plugin)' is missing an @Override annotation. 3 116139
MissingOverride The method 'delete(int, Plugin)' is missing an @Override annotation. 3 146152
MissingOverride The method 'store(Catalog, Plugin)' is missing an @Override annotation. 3 159173
MissingOverride The method 'selectCatalogsList(Plugin)' is missing an @Override annotation. 3 180203
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 182
MissingOverride The method 'selectPluginsEntries(int, Plugin)' is missing an @Override annotation. 3 211241
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 213
MissingOverride The method 'addRelease(int, int, Plugin)' is missing an @Override annotation. 3 274283
MissingOverride The method 'removeRelease(int, int, Plugin)' is missing an @Override annotation. 3 291300

fr/paris/lutece/plugins/updatercatalog/business/CatalogPlugin.java

Rule Violation Priority Ligne
ShortVariable Avoid variables with short names like o 3 144
MissingOverride The method 'compareTo(Object)' is missing an @Override annotation. 3 144149

fr/paris/lutece/plugins/updatercatalog/business/CatalogPluginDAO.java

Rule Violation Priority Ligne
MissingOverride The method 'insert(CatalogPlugin, Plugin)' is missing an @Override annotation. 3 6678
MissingOverride The method 'load(String, String, Plugin)' is missing an @Override annotation. 3 87110
MissingOverride The method 'delete(String, String, Plugin)' is missing an @Override annotation. 3 118125
MissingOverride The method 'store(CatalogPlugin, Plugin)' is missing an @Override annotation. 3 132146
MissingOverride The method 'selectCatalogPluginsList(Plugin)' is missing an @Override annotation. 3 153175
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 155
MissingOverride The method 'selectPluginsListByLocale(Plugin, String)' is missing an @Override annotation. 3 183198
MissingOverride The method 'selectAvailablePluginsByLocale(Plugin, String)' is missing an @Override annotation. 3 206231
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 208
MissingOverride The method 'getPlugins(Plugin)' is missing an @Override annotation. 3 238253

fr/paris/lutece/plugins/updatercatalog/business/CatalogPluginEntry.java

Rule Violation Priority Ligne
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 56
ImmutableField Private field '_listUpgrades' could be made final; it is only initialized in the declaration or constructor. 3 56
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the addUpgrade method if you want a default access modifier 3 251254
DefaultPackage Use explicit scoping instead of the default package private level 3 251254

fr/paris/lutece/plugins/updatercatalog/business/PluginRelease.java

Rule Violation Priority Ligne
ImmutableField Private field '_listUpgrades' could be made final; it is only initialized in the declaration or constructor. 3 52
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 52
DefaultPackage Use explicit scoping instead of the default package private level 3 166169
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the addUpgrade method if you want a default access modifier 3 166169
ShortVariable Avoid variables with short names like o 3 185
MissingOverride The method 'compareTo(Object)' is missing an @Override annotation. 3 185197

fr/paris/lutece/plugins/updatercatalog/business/PluginReleaseDAO.java

Rule Violation Priority Ligne
MissingOverride The method 'insert(PluginRelease, Plugin)' is missing an @Override annotation. 3 93108
MissingOverride The method 'load(int, Plugin)' is missing an @Override annotation. 3 116144
MissingOverride The method 'delete(int, Plugin)' is missing an @Override annotation. 3 151172
MissingOverride The method 'store(PluginRelease, Plugin)' is missing an @Override annotation. 3 179193
MissingOverride The method 'selectPluginReleasesList(Plugin)' is missing an @Override annotation. 3 200223
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 202
MissingOverride The method 'addUpgrade(int, ReleaseUpgrade, Plugin)' is missing an @Override annotation. 3 234245
MissingOverride The method 'deleteUpgrade(int, String, Plugin)' is missing an @Override annotation. 3 253260

fr/paris/lutece/plugins/updatercatalog/web/CatalogJspBean.java

Rule Violation Priority Ligne
GodClass Possible God Class (WMC=79, ATFD=104, TCC=19.251%) 3 64803
MissingSerialVersionUID Classes implementing Serializable should set a serialVersionUID 3 64803
TooManyMethods This class has too many methods, consider refactoring it. 3 65803
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 176
ForLoopCanBeForeach This for loop can be replaced by a foreach loop 3 219223
CyclomaticComplexity The method 'getData(HttpServletRequest, Catalog)' has a cyclomatic complexity of 11. 3 329352
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 497
CyclomaticComplexity The method 'getPluginData(HttpServletRequest, CatalogPlugin)' has a cyclomatic complexity of 11. 3 644666
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 725
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 752