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/campaign/business/IPhaseDAO.java

Rule Violation Line
FormalParameterNamingConventions The method parameter name '_plugin' doesn't match '[a-z][a-zA-Z0-9]*' 149

fr/paris/lutece/plugins/campaign/service/CampaignAreaService.java

Rule Violation Line
ClassWithOnlyPrivateConstructorsShouldBeFinal A class which only has private constructors should be final 3958

fr/paris/lutece/plugins/campaign/service/Utils.java

Rule Violation Line
ClassWithOnlyPrivateConstructorsShouldBeFinal A class which only has private constructors should be final 3847
ClassNamingConventions The utility class name 'Utils' doesn't match '[A-Z][a-zA-Z0-9]+(Utils?|Helper|Home|Service)' 3847
FieldNamingConventions The public constant name 'dateFormat' doesn't match '[A-Z][A-Z_0-9]*' 41

Priority 2

fr/paris/lutece/plugins/campaign/service/CampaignService.java

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

Priority 3

fr/paris/lutece/plugins/campaign/business/ThemeDAO.java

Rule Violation Line
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 255

fr/paris/lutece/plugins/campaign/service/CampaignAreaService.java

Rule Violation Line
CommentRequired Header comments are required 3958

fr/paris/lutece/plugins/campaign/service/CampaignPhaseService.java

Rule Violation Line
NonThreadSafeSingleton Singleton is not thread safe 5558

fr/paris/lutece/plugins/campaign/service/CampaignService.java

Rule Violation Line
CommentRequired Header comments are required 50192
RedundantFieldInitializer Avoid using redundant field initializer for '_cache' 52
CommentRequired Public method and constructor comments are required 5865
NonThreadSafeSingleton Singleton is not thread safe 6063
CommentRequired Public method and constructor comments are required 6787
MissingOverride The method 'reset()' is missing an @Override annotation. 6787
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 71
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 71
AvoidDuplicateLiterals The String literal "BEGINNING_DATETIME" appears 4 times in this file; the first occurrence is on line 76 76
AvoidDuplicateLiterals The String literal "END_DATETIME" appears 4 times in this file; the first occurrence is on line 77 77
ControlStatementBraces This statement should have braces 97
CommentRequired Public method and constructor comments are required 115124
MissingOverride The method 'isDuring(String, String)' is missing an @Override annotation. 115124
UnnecessaryLocalBeforeReturn Consider simply returning the value vs storing it in local variable 'result' 123
CommentRequired Public method and constructor comments are required 126129
MissingOverride The method 'isDuring(String)' is missing an @Override annotation. 126129
CommentRequired Public method and constructor comments are required 131137
MissingOverride The method 'isBeforeEnd(String, String)' is missing an @Override annotation. 131137
UnnecessaryLocalBeforeReturn Consider simply returning the value vs storing it in local variable 'result' 136
MissingOverride The method 'isBeforeEnd(String)' is missing an @Override annotation. 139142
CommentRequired Public method and constructor comments are required 139142
MissingOverride The method 'isAfterBeginning(String, String)' is missing an @Override annotation. 144150
CommentRequired Public method and constructor comments are required 144150
UnnecessaryLocalBeforeReturn Consider simply returning the value vs storing it in local variable 'result' 149
MissingOverride The method 'isAfterBeginning(String)' is missing an @Override annotation. 152155
CommentRequired Public method and constructor comments are required 152155
CommentRequired Public method and constructor comments are required 157163
MissingOverride The method 'isBeforeBeginning(String, String)' is missing an @Override annotation. 157163
UnnecessaryLocalBeforeReturn Consider simply returning the value vs storing it in local variable 'result' 162
CommentRequired Public method and constructor comments are required 165168
MissingOverride The method 'isBeforeBeginning(String)' is missing an @Override annotation. 165168
MissingOverride The method 'isAfterEnd(String, String)' is missing an @Override annotation. 170176
CommentRequired Public method and constructor comments are required 170176
UnnecessaryLocalBeforeReturn Consider simply returning the value vs storing it in local variable 'result' 175
CommentRequired Public method and constructor comments are required 178181
MissingOverride The method 'isAfterEnd(String)' is missing an @Override annotation. 178181
MissingOverride The method 'getLastCampaign()' is missing an @Override annotation. 183186
CommentRequired Public method and constructor comments are required 183186
MissingOverride The method 'getCampaignsReferenceList()' is missing an @Override annotation. 188191
CommentRequired Public method and constructor comments are required 188191

fr/paris/lutece/plugins/campaign/service/CampaignThemeService.java

Rule Violation Line
CommentRequired Header comments are required 4377
NonThreadSafeSingleton Singleton is not thread safe 5356

fr/paris/lutece/plugins/campaign/service/ICampaignPhaseService.java

Rule Violation Line
CommentRequired Header comments are required 4059
UnnecessaryModifier Unnecessary modifier 'public' on method 'findPhaseByCampaignAndPhaseTypeCode': the method is declared in an interface type 50
UnnecessaryModifier Unnecessary modifier 'public' on method 'getPhasesListByCampaign': the method is declared in an interface type 57

fr/paris/lutece/plugins/campaign/service/ICampaignService.java

Rule Violation Line
UnnecessaryModifier Unnecessary modifier 'public' on method 'isDuring': the method is declared in an interface type 57
UnnecessaryModifier Unnecessary modifier 'public' on method 'isDuring': the method is declared in an interface type 64
UnnecessaryModifier Unnecessary modifier 'public' on method 'getLastCampaign': the method is declared in an interface type 69
UnnecessaryModifier Unnecessary modifier 'public' on method 'isBeforeEnd': the method is declared in an interface type 78
UnnecessaryModifier Unnecessary modifier 'public' on method 'isBeforeEnd': the method is declared in an interface type 85
UnnecessaryModifier Unnecessary modifier 'public' on method 'isAfterBeginning': the method is declared in an interface type 94
UnnecessaryModifier Unnecessary modifier 'public' on method 'isAfterBeginning': the method is declared in an interface type 101
UnnecessaryModifier Unnecessary modifier 'public' on method 'isBeforeBeginning': the method is declared in an interface type 110
UnnecessaryModifier Unnecessary modifier 'public' on method 'isBeforeBeginning': the method is declared in an interface type 117
UnnecessaryModifier Unnecessary modifier 'public' on method 'isAfterEnd': the method is declared in an interface type 126
UnnecessaryModifier Unnecessary modifier 'public' on method 'isAfterEnd': the method is declared in an interface type 133
UnnecessaryModifier Unnecessary modifier 'public' on method 'reset': the method is declared in an interface type 139
UnnecessaryModifier Unnecessary modifier 'public' on method 'getCampaignsReferenceList': the method is declared in an interface type 146

fr/paris/lutece/plugins/campaign/service/ICampaignThemeService.java

Rule Violation Line
CommentRequired Header comments are required 4251
CommentRequired Public method and constructor comments are required 45
CommentRequired Public method and constructor comments are required 47
CommentRequired Public method and constructor comments are required 49

fr/paris/lutece/plugins/campaign/service/NoSuchPhaseException.java

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

fr/paris/lutece/plugins/campaign/service/Utils.java

Rule Violation Line
CommentRequired Header comments are required 3847

fr/paris/lutece/plugins/campaign/web/AreaJspBean.java

Rule Violation Line
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 119
ConfusingTernary Avoid if (x != y) ..; else ..; 136

fr/paris/lutece/plugins/campaign/web/CampaignJspBean.java

Rule Violation Line
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 118
ConfusingTernary Avoid if (x != y) ..; else ..; 135

fr/paris/lutece/plugins/campaign/web/PhaseJspBean.java

Rule Violation Line
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 129
ConfusingTernary Avoid if (x != y) ..; else ..; 146

fr/paris/lutece/plugins/campaign/web/ThemeJspBean.java

Rule Violation Line
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 119
ConfusingTernary Avoid if (x != y) ..; else ..; 137

Priority 4

fr/paris/lutece/plugins/campaign/business/Area.java

Rule Violation Line
ShortClassName Avoid short class names like Area 43210
BooleanGetMethodName A getX() method which returns a boolean should be named isX() 195198

fr/paris/lutece/plugins/campaign/business/Campaign.java

Rule Violation Line
BooleanGetMethodName A getX() method which returns a boolean should be named isX() 152155

fr/paris/lutece/plugins/campaign/business/Theme.java

Rule Violation Line
BooleanGetMethodName A getX() method which returns a boolean should be named isX() 158161

fr/paris/lutece/plugins/campaign/service/ICampaignService.java

Rule Violation Line
UnusedImports Avoid unused imports such as 'java.sql.Timestamp' 36

Files

fr/paris/lutece/plugins/campaign/business/Area.java

Rule Violation Priority Line
ShortClassName Avoid short class names like Area 4 43210
BooleanGetMethodName A getX() method which returns a boolean should be named isX() 4 195198

fr/paris/lutece/plugins/campaign/business/Campaign.java

Rule Violation Priority Line
BooleanGetMethodName A getX() method which returns a boolean should be named isX() 4 152155

fr/paris/lutece/plugins/campaign/business/IPhaseDAO.java

Rule Violation Priority Line
FormalParameterNamingConventions The method parameter name '_plugin' doesn't match '[a-z][a-zA-Z0-9]*' 1 149

fr/paris/lutece/plugins/campaign/business/Theme.java

Rule Violation Priority Line
BooleanGetMethodName A getX() method which returns a boolean should be named isX() 4 158161

fr/paris/lutece/plugins/campaign/business/ThemeDAO.java

Rule Violation Priority Line
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 255

fr/paris/lutece/plugins/campaign/service/CampaignAreaService.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 3958
ClassWithOnlyPrivateConstructorsShouldBeFinal A class which only has private constructors should be final 1 3958

fr/paris/lutece/plugins/campaign/service/CampaignPhaseService.java

Rule Violation Priority Line
NonThreadSafeSingleton Singleton is not thread safe 3 5558

fr/paris/lutece/plugins/campaign/service/CampaignService.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 50192
RedundantFieldInitializer Avoid using redundant field initializer for '_cache' 3 52
CommentRequired Public method and constructor comments are required 3 5865
NonThreadSafeSingleton Singleton is not thread safe 3 6063
CommentRequired Public method and constructor comments are required 3 6787
MissingOverride The method 'reset()' is missing an @Override annotation. 3 6787
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 71
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 71
AvoidDuplicateLiterals The String literal "BEGINNING_DATETIME" appears 4 times in this file; the first occurrence is on line 76 3 76
AvoidDuplicateLiterals The String literal "END_DATETIME" appears 4 times in this file; the first occurrence is on line 77 3 77
GuardLogStatement Logger calls should be surrounded by log level guards. 2 8283
ControlStatementBraces This statement should have braces 3 97
CommentRequired Public method and constructor comments are required 3 115124
MissingOverride The method 'isDuring(String, String)' is missing an @Override annotation. 3 115124
UnnecessaryLocalBeforeReturn Consider simply returning the value vs storing it in local variable 'result' 3 123
CommentRequired Public method and constructor comments are required 3 126129
MissingOverride The method 'isDuring(String)' is missing an @Override annotation. 3 126129
CommentRequired Public method and constructor comments are required 3 131137
MissingOverride The method 'isBeforeEnd(String, String)' is missing an @Override annotation. 3 131137
UnnecessaryLocalBeforeReturn Consider simply returning the value vs storing it in local variable 'result' 3 136
MissingOverride The method 'isBeforeEnd(String)' is missing an @Override annotation. 3 139142
CommentRequired Public method and constructor comments are required 3 139142
MissingOverride The method 'isAfterBeginning(String, String)' is missing an @Override annotation. 3 144150
CommentRequired Public method and constructor comments are required 3 144150
UnnecessaryLocalBeforeReturn Consider simply returning the value vs storing it in local variable 'result' 3 149
MissingOverride The method 'isAfterBeginning(String)' is missing an @Override annotation. 3 152155
CommentRequired Public method and constructor comments are required 3 152155
CommentRequired Public method and constructor comments are required 3 157163
MissingOverride The method 'isBeforeBeginning(String, String)' is missing an @Override annotation. 3 157163
UnnecessaryLocalBeforeReturn Consider simply returning the value vs storing it in local variable 'result' 3 162
CommentRequired Public method and constructor comments are required 3 165168
MissingOverride The method 'isBeforeBeginning(String)' is missing an @Override annotation. 3 165168
MissingOverride The method 'isAfterEnd(String, String)' is missing an @Override annotation. 3 170176
CommentRequired Public method and constructor comments are required 3 170176
UnnecessaryLocalBeforeReturn Consider simply returning the value vs storing it in local variable 'result' 3 175
CommentRequired Public method and constructor comments are required 3 178181
MissingOverride The method 'isAfterEnd(String)' is missing an @Override annotation. 3 178181
MissingOverride The method 'getLastCampaign()' is missing an @Override annotation. 3 183186
CommentRequired Public method and constructor comments are required 3 183186
MissingOverride The method 'getCampaignsReferenceList()' is missing an @Override annotation. 3 188191
CommentRequired Public method and constructor comments are required 3 188191

fr/paris/lutece/plugins/campaign/service/CampaignThemeService.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 4377
NonThreadSafeSingleton Singleton is not thread safe 3 5356

fr/paris/lutece/plugins/campaign/service/ICampaignPhaseService.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 4059
UnnecessaryModifier Unnecessary modifier 'public' on method 'findPhaseByCampaignAndPhaseTypeCode': the method is declared in an interface type 3 50
UnnecessaryModifier Unnecessary modifier 'public' on method 'getPhasesListByCampaign': the method is declared in an interface type 3 57

fr/paris/lutece/plugins/campaign/service/ICampaignService.java

Rule Violation Priority Line
UnusedImports Avoid unused imports such as 'java.sql.Timestamp' 4 36
UnnecessaryModifier Unnecessary modifier 'public' on method 'isDuring': the method is declared in an interface type 3 57
UnnecessaryModifier Unnecessary modifier 'public' on method 'isDuring': the method is declared in an interface type 3 64
UnnecessaryModifier Unnecessary modifier 'public' on method 'getLastCampaign': the method is declared in an interface type 3 69
UnnecessaryModifier Unnecessary modifier 'public' on method 'isBeforeEnd': the method is declared in an interface type 3 78
UnnecessaryModifier Unnecessary modifier 'public' on method 'isBeforeEnd': the method is declared in an interface type 3 85
UnnecessaryModifier Unnecessary modifier 'public' on method 'isAfterBeginning': the method is declared in an interface type 3 94
UnnecessaryModifier Unnecessary modifier 'public' on method 'isAfterBeginning': the method is declared in an interface type 3 101
UnnecessaryModifier Unnecessary modifier 'public' on method 'isBeforeBeginning': the method is declared in an interface type 3 110
UnnecessaryModifier Unnecessary modifier 'public' on method 'isBeforeBeginning': the method is declared in an interface type 3 117
UnnecessaryModifier Unnecessary modifier 'public' on method 'isAfterEnd': the method is declared in an interface type 3 126
UnnecessaryModifier Unnecessary modifier 'public' on method 'isAfterEnd': the method is declared in an interface type 3 133
UnnecessaryModifier Unnecessary modifier 'public' on method 'reset': the method is declared in an interface type 3 139
UnnecessaryModifier Unnecessary modifier 'public' on method 'getCampaignsReferenceList': the method is declared in an interface type 3 146

fr/paris/lutece/plugins/campaign/service/ICampaignThemeService.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 4251
CommentRequired Public method and constructor comments are required 3 45
CommentRequired Public method and constructor comments are required 3 47
CommentRequired Public method and constructor comments are required 3 49

fr/paris/lutece/plugins/campaign/service/NoSuchPhaseException.java

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

fr/paris/lutece/plugins/campaign/service/Utils.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 3847
ClassWithOnlyPrivateConstructorsShouldBeFinal A class which only has private constructors should be final 1 3847
ClassNamingConventions The utility class name 'Utils' doesn't match '[A-Z][a-zA-Z0-9]+(Utils?|Helper|Home|Service)' 1 3847
FieldNamingConventions The public constant name 'dateFormat' doesn't match '[A-Z][A-Z_0-9]*' 1 41

fr/paris/lutece/plugins/campaign/web/AreaJspBean.java

Rule Violation Priority Line
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 119
ConfusingTernary Avoid if (x != y) ..; else ..; 3 136

fr/paris/lutece/plugins/campaign/web/CampaignJspBean.java

Rule Violation Priority Line
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 118
ConfusingTernary Avoid if (x != y) ..; else ..; 3 135

fr/paris/lutece/plugins/campaign/web/PhaseJspBean.java

Rule Violation Priority Line
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 129
ConfusingTernary Avoid if (x != y) ..; else ..; 3 146

fr/paris/lutece/plugins/campaign/web/ThemeJspBean.java

Rule Violation Priority Line
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 119
ConfusingTernary Avoid if (x != y) ..; else ..; 3 137