Fork me on GitHub

PMD Results

The following document contains the results of PMD 6.13.0.

Violations By Priority

Priority 1

fr/paris/lutece/plugins/unittree/business/assignment/UnitAssignmentType.java

Rule Violation Line
FieldNamingConventions The final field name '_strAssignmentTypeCode' doesn't match '[a-z][a-zA-Z0-9]*' 47

fr/paris/lutece/plugins/unittree/service/UnitErrorException.java

Rule Violation Line
FieldNamingConventions The final field name '_strI18nErrorMessage' doesn't match '[a-z][a-zA-Z0-9]*' 44

fr/paris/lutece/plugins/unittree/service/assignment/UnitAssignmentService.java

Rule Violation Line
FieldNamingConventions The constant name '_plugin' doesn't match '[A-Z][A-Z_0-9]*' 53

fr/paris/lutece/plugins/unittree/service/unit/UnitAttributeManager.java

Rule Violation Line
ClassNamingConventions The utility class name 'UnitAttributeManager' doesn't match '[A-Z][a-zA-Z0-9]+(Utils?|Helper|Home|Service)' 52218

fr/paris/lutece/plugins/unittree/service/unit/UnitUserAttributeManager.java

Rule Violation Line
ClassNamingConventions The utility class name 'UnitUserAttributeManager' doesn't match '[A-Z][a-zA-Z0-9]+(Utils?|Helper|Home|Service)' 50100

Priority 2

fr/paris/lutece/plugins/unittree/business/action/ActionFactory.java

Rule Violation Line
GuardLogStatement Logger calls should be surrounded by log level guards. 102

fr/paris/lutece/plugins/unittree/web/UnitJspBean.java

Rule Violation Line
GuardLogStatement Logger calls should be surrounded by log level guards. 195

Priority 3

fr/paris/lutece/plugins/unittree/business/action/AbstractAction.java

Rule Violation Line
MissingOverride The method 'setIdAction(int)' is missing an @Override annotation. 6164
MissingOverride The method 'getIdAction()' is missing an @Override annotation. 7174
MissingOverride The method 'setLocale(Locale)' is missing an @Override annotation. 8285
MissingOverride The method 'getUrl()' is missing an @Override annotation. 9295
MissingOverride The method 'setUrl(String)' is missing an @Override annotation. 103106
MissingOverride The method 'getNameKey()' is missing an @Override annotation. 113116
MissingOverride The method 'getName()' is missing an @Override annotation. 123126
MissingOverride The method 'setNameKey(String)' is missing an @Override annotation. 134137
MissingOverride The method 'getDescriptionKey()' is missing an @Override annotation. 144147
MissingOverride The method 'getDescription()' is missing an @Override annotation. 154157
MissingOverride The method 'setDescriptionKey(String)' is missing an @Override annotation. 165168
MissingOverride The method 'getIcon()' is missing an @Override annotation. 175178
MissingOverride The method 'setIcon(String)' is missing an @Override annotation. 186189
MissingOverride The method 'getPermission()' is missing an @Override annotation. 196199
MissingOverride The method 'setPermission(String)' is missing an @Override annotation. 207210

fr/paris/lutece/plugins/unittree/business/action/ActionFactory.java

Rule Violation Line
ShortVariable Avoid variables with short names like e 80

fr/paris/lutece/plugins/unittree/business/action/IAction.java

Rule Violation Line
MissingOverride The method 'setLocale(Locale)' is missing an @Override annotation. 69
MissingOverride The method 'getPermission()' is missing an @Override annotation. 150

fr/paris/lutece/plugins/unittree/business/unit/IUnitDAO.java

Rule Violation Line
TooManyMethods This class has too many methods, consider refactoring it. 45248

fr/paris/lutece/plugins/unittree/business/unit/TreeUnit.java

Rule Violation Line
DataClass The class 'TreeUnit' is suspected to be a Data Class (WOC=14.286%, NOPA=0, NOAM=4, WMC=7) 44116

fr/paris/lutece/plugins/unittree/business/unit/Unit.java

Rule Violation Line
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 62
ImmutableField Private field '_mapAttributes' could be made final; it is only initialized in the declaration or constructor. 62

fr/paris/lutece/plugins/unittree/business/unit/UnitDAO.java

Rule Violation Line
TooManyMethods This class has too many methods, consider refactoring it. 48551
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 105123
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 357367
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 478

fr/paris/lutece/plugins/unittree/business/unit/UnitHome.java

Rule Violation Line
TooManyMethods This class has too many methods, consider refactoring it. 51293

fr/paris/lutece/plugins/unittree/service/UnitErrorException.java

Rule Violation Line
CallSuperInConstructor It is a good practice to call super() in a constructor 5255

fr/paris/lutece/plugins/unittree/service/selection/IParametrableConfigurationHandler.java

Rule Violation Line
CommentRequired Header comments are required 4284
CommentRequired Public method and constructor comments are required 81
CommentRequired Public method and constructor comments are required 83

fr/paris/lutece/plugins/unittree/service/unit/IUnitRemovalListener.java

Rule Violation Line
CommentRequired Header comments are required 3848

fr/paris/lutece/plugins/unittree/service/unit/IUnitService.java

Rule Violation Line
AvoidDuplicateLiterals The String literal "unittree.transactionManager" appears 4 times in this file; the first occurrence is on line 290 290
UnnecessaryModifier Unnecessary modifier 'public' on method 'populateTreeUnit': the method is declared in an interface type 350

fr/paris/lutece/plugins/unittree/service/unit/MokeUnitRemovalListener.java

Rule Violation Line
CommentRequired Header comments are required 3853

fr/paris/lutece/plugins/unittree/service/unit/UnitResourceIdService.java

Rule Violation Line
CallSuperInConstructor It is a good practice to call super() in a constructor 8285
MissingOverride The method 'register()' is missing an @Override annotation. 90139
ShortVariable Avoid variables with short names like rt 92
ShortVariable Avoid variables with short names like p 98
MissingOverride The method 'getResourceIdList(Locale)' is missing an @Override annotation. 148159
MissingOverride The method 'getTitle(String, Locale)' is missing an @Override annotation. 170185

fr/paris/lutece/plugins/unittree/service/unit/UnitService.java

Rule Violation Line
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 34746
MissingOverride The method 'getUnitWithNoChildren()' is missing an @Override annotation. 445448
AvoidDuplicateLiterals The String literal "unittree.transactionManager" appears 4 times in this file; the first occurrence is on line 577 577
LinguisticNaming Linguistics Antipattern - The getter 'getXMLUnit' should not return void linguistically 659684
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 701

fr/paris/lutece/plugins/unittree/service/unit/UnitUserService.java

Rule Violation Line
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 194

fr/paris/lutece/plugins/unittree/web/UnitJspBean.java

Rule Violation Line
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 341144
ExcessiveClassLength Avoid really long classes. 911144
CyclomaticComplexity The class 'UnitJspBean' has a total cyclomatic complexity of 138 (highest 18). 911144
ImmutableField Private field '_unitService' could be made final; it is only initialized in the declaration or constructor. 167
ImmutableField Private field '_unitUserService' could be made final; it is only initialized in the declaration or constructor. 168
ImmutableField Private field '_bAdminAvatar' could be made final; it is only initialized in the declaration or constructor. 172
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 226
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 229
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 301
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 346
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 424
CyclomaticComplexity The method 'getMoveUser(HttpServletRequest)' has a cyclomatic complexity of 17. 453526
NPathComplexity The method 'getMoveUser(HttpServletRequest)' has an NPath complexity of 600 453526
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 516
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 617
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 698
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 764
CyclomaticComplexity The method 'doAddUsers(HttpServletRequest)' has a cyclomatic complexity of 11. 787834
CyclomaticComplexity The method 'doMoveUser(HttpServletRequest)' has a cyclomatic complexity of 18. 843931
NPathComplexity The method 'doMoveUser(HttpServletRequest)' has an NPath complexity of 1280 843931
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 847
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 918
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 969
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 1011
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 1048
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 1130

fr/paris/lutece/plugins/unittree/web/action/UnitUserSearchFields.java

Rule Violation Line
NPathComplexity The method 'fillModelForUserSearchForm(List, String, HttpServletRequest, Map, Unit)' has an NPath complexity of 208 114189
CyclomaticComplexity The method 'fillModelForUserSearchForm(List, String, HttpServletRequest, Map, Unit)' has a cyclomatic complexity of 12. 114189

Priority 4

fr/paris/lutece/plugins/unittree/business/unit/Unit.java

Rule Violation Line
ShortClassName Avoid short class names like Unit 48253

Files

fr/paris/lutece/plugins/unittree/business/action/AbstractAction.java

Rule Violation Priority Line
MissingOverride The method 'setIdAction(int)' is missing an @Override annotation. 3 6164
MissingOverride The method 'getIdAction()' is missing an @Override annotation. 3 7174
MissingOverride The method 'setLocale(Locale)' is missing an @Override annotation. 3 8285
MissingOverride The method 'getUrl()' is missing an @Override annotation. 3 9295
MissingOverride The method 'setUrl(String)' is missing an @Override annotation. 3 103106
MissingOverride The method 'getNameKey()' is missing an @Override annotation. 3 113116
MissingOverride The method 'getName()' is missing an @Override annotation. 3 123126
MissingOverride The method 'setNameKey(String)' is missing an @Override annotation. 3 134137
MissingOverride The method 'getDescriptionKey()' is missing an @Override annotation. 3 144147
MissingOverride The method 'getDescription()' is missing an @Override annotation. 3 154157
MissingOverride The method 'setDescriptionKey(String)' is missing an @Override annotation. 3 165168
MissingOverride The method 'getIcon()' is missing an @Override annotation. 3 175178
MissingOverride The method 'setIcon(String)' is missing an @Override annotation. 3 186189
MissingOverride The method 'getPermission()' is missing an @Override annotation. 3 196199
MissingOverride The method 'setPermission(String)' is missing an @Override annotation. 3 207210

fr/paris/lutece/plugins/unittree/business/action/ActionFactory.java

Rule Violation Priority Line
ShortVariable Avoid variables with short names like e 3 80
GuardLogStatement Logger calls should be surrounded by log level guards. 2 102

fr/paris/lutece/plugins/unittree/business/action/IAction.java

Rule Violation Priority Line
MissingOverride The method 'setLocale(Locale)' is missing an @Override annotation. 3 69
MissingOverride The method 'getPermission()' is missing an @Override annotation. 3 150

fr/paris/lutece/plugins/unittree/business/assignment/UnitAssignmentType.java

Rule Violation Priority Line
FieldNamingConventions The final field name '_strAssignmentTypeCode' doesn't match '[a-z][a-zA-Z0-9]*' 1 47

fr/paris/lutece/plugins/unittree/business/unit/IUnitDAO.java

Rule Violation Priority Line
TooManyMethods This class has too many methods, consider refactoring it. 3 45248

fr/paris/lutece/plugins/unittree/business/unit/TreeUnit.java

Rule Violation Priority Line
DataClass The class 'TreeUnit' is suspected to be a Data Class (WOC=14.286%, NOPA=0, NOAM=4, WMC=7) 3 44116

fr/paris/lutece/plugins/unittree/business/unit/Unit.java

Rule Violation Priority Line
ShortClassName Avoid short class names like Unit 4 48253
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 62
ImmutableField Private field '_mapAttributes' could be made final; it is only initialized in the declaration or constructor. 3 62

fr/paris/lutece/plugins/unittree/business/unit/UnitDAO.java

Rule Violation Priority Line
TooManyMethods This class has too many methods, consider refactoring it. 3 48551
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 3 105123
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 3 357367
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 3 478

fr/paris/lutece/plugins/unittree/business/unit/UnitHome.java

Rule Violation Priority Line
TooManyMethods This class has too many methods, consider refactoring it. 3 51293

fr/paris/lutece/plugins/unittree/service/UnitErrorException.java

Rule Violation Priority Line
FieldNamingConventions The final field name '_strI18nErrorMessage' doesn't match '[a-z][a-zA-Z0-9]*' 1 44
CallSuperInConstructor It is a good practice to call super() in a constructor 3 5255

fr/paris/lutece/plugins/unittree/service/assignment/UnitAssignmentService.java

Rule Violation Priority Line
FieldNamingConventions The constant name '_plugin' doesn't match '[A-Z][A-Z_0-9]*' 1 53

fr/paris/lutece/plugins/unittree/service/selection/IParametrableConfigurationHandler.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 4284
CommentRequired Public method and constructor comments are required 3 81
CommentRequired Public method and constructor comments are required 3 83

fr/paris/lutece/plugins/unittree/service/unit/IUnitRemovalListener.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 3848

fr/paris/lutece/plugins/unittree/service/unit/IUnitService.java

Rule Violation Priority Line
AvoidDuplicateLiterals The String literal "unittree.transactionManager" appears 4 times in this file; the first occurrence is on line 290 3 290
UnnecessaryModifier Unnecessary modifier 'public' on method 'populateTreeUnit': the method is declared in an interface type 3 350

fr/paris/lutece/plugins/unittree/service/unit/MokeUnitRemovalListener.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 3853

fr/paris/lutece/plugins/unittree/service/unit/UnitAttributeManager.java

Rule Violation Priority Line
ClassNamingConventions The utility class name 'UnitAttributeManager' doesn't match '[A-Z][a-zA-Z0-9]+(Utils?|Helper|Home|Service)' 1 52218

fr/paris/lutece/plugins/unittree/service/unit/UnitResourceIdService.java

Rule Violation Priority Line
CallSuperInConstructor It is a good practice to call super() in a constructor 3 8285
MissingOverride The method 'register()' is missing an @Override annotation. 3 90139
ShortVariable Avoid variables with short names like rt 3 92
ShortVariable Avoid variables with short names like p 3 98
MissingOverride The method 'getResourceIdList(Locale)' is missing an @Override annotation. 3 148159
MissingOverride The method 'getTitle(String, Locale)' is missing an @Override annotation. 3 170185

fr/paris/lutece/plugins/unittree/service/unit/UnitService.java

Rule Violation Priority Line
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 3 34746
MissingOverride The method 'getUnitWithNoChildren()' is missing an @Override annotation. 3 445448
AvoidDuplicateLiterals The String literal "unittree.transactionManager" appears 4 times in this file; the first occurrence is on line 577 3 577
LinguisticNaming Linguistics Antipattern - The getter 'getXMLUnit' should not return void linguistically 3 659684
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 701

fr/paris/lutece/plugins/unittree/service/unit/UnitUserAttributeManager.java

Rule Violation Priority Line
ClassNamingConventions The utility class name 'UnitUserAttributeManager' doesn't match '[A-Z][a-zA-Z0-9]+(Utils?|Helper|Home|Service)' 1 50100

fr/paris/lutece/plugins/unittree/service/unit/UnitUserService.java

Rule Violation Priority Line
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 194

fr/paris/lutece/plugins/unittree/web/UnitJspBean.java

Rule Violation Priority Line
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 3 341144
ExcessiveClassLength Avoid really long classes. 3 911144
CyclomaticComplexity The class 'UnitJspBean' has a total cyclomatic complexity of 138 (highest 18). 3 911144
ImmutableField Private field '_unitService' could be made final; it is only initialized in the declaration or constructor. 3 167
ImmutableField Private field '_unitUserService' could be made final; it is only initialized in the declaration or constructor. 3 168
ImmutableField Private field '_bAdminAvatar' could be made final; it is only initialized in the declaration or constructor. 3 172
GuardLogStatement Logger calls should be surrounded by log level guards. 2 195
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 226
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 229
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 301
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 346
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 424
CyclomaticComplexity The method 'getMoveUser(HttpServletRequest)' has a cyclomatic complexity of 17. 3 453526
NPathComplexity The method 'getMoveUser(HttpServletRequest)' has an NPath complexity of 600 3 453526
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 516
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 617
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 698
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 764
CyclomaticComplexity The method 'doAddUsers(HttpServletRequest)' has a cyclomatic complexity of 11. 3 787834
CyclomaticComplexity The method 'doMoveUser(HttpServletRequest)' has a cyclomatic complexity of 18. 3 843931
NPathComplexity The method 'doMoveUser(HttpServletRequest)' has an NPath complexity of 1280 3 843931
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 847
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 918
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 969
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 1011
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 1048
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 1130

fr/paris/lutece/plugins/unittree/web/action/UnitUserSearchFields.java

Rule Violation Priority Line
NPathComplexity The method 'fillModelForUserSearchForm(List, String, HttpServletRequest, Map, Unit)' has an NPath complexity of 208 3 114189
CyclomaticComplexity The method 'fillModelForUserSearchForm(List, String, HttpServletRequest, Map, Unit)' has a cyclomatic complexity of 12. 3 114189