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/deviceregistration/business/AbstractFilterDao.java

Rule Violation Line
FieldNamingConventions The constant name '_listPrefixToRemove' doesn't match '[A-Z][A-Z_0-9]*' 74
FieldNamingConventions The constant name '_listTypeAllowedForSearch' doesn't match '[A-Z][A-Z_0-9]*' 75

fr/paris/lutece/plugins/deviceregistration/business/deviceregistration/DeviceRegistrationHome.java

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

fr/paris/lutece/plugins/deviceregistration/business/deviceregistration/IDeviceRegistrationDAO.java

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

fr/paris/lutece/plugins/deviceregistration/business/history/DeviceRegistrationHistory.java

Rule Violation Line
FieldNamingConventions The field name 'id' doesn't match '_[a-z][a-zA-Z0-9]*' 40
FieldNamingConventions The field name 'createdAt' doesn't match '_[a-z][a-zA-Z0-9]*' 41
FieldNamingConventions The field name 'changeType' doesn't match '_[a-z][a-zA-Z0-9]*' 42
FieldNamingConventions The field name 'customerId' doesn't match '_[a-z][a-zA-Z0-9]*' 43
FieldNamingConventions The field name 'connectionId' doesn't match '_[a-z][a-zA-Z0-9]*' 44
FieldNamingConventions The field name 'registrationToken' doesn't match '_[a-z][a-zA-Z0-9]*' 45
FieldNamingConventions The field name 'tokenIssuer' doesn't match '_[a-z][a-zA-Z0-9]*' 46

fr/paris/lutece/plugins/deviceregistration/business/history/DeviceRegistrationHistoryHome.java

Rule Violation Line
FieldNamingConventions The constant name 'dao' doesn't match '[A-Z][A-Z_0-9]*' 46
FieldNamingConventions The constant name 'plugin' doesn't match '[A-Z][A-Z_0-9]*' 47

fr/paris/lutece/plugins/deviceregistration/dto/DeviceRegistrationRequest.java

Rule Violation Line
FieldNamingConventions The field name 'customerId' doesn't match '_[a-z][a-zA-Z0-9]*' 48
FieldNamingConventions The field name 'connectionId' doesn't match '_[a-z][a-zA-Z0-9]*' 52
FieldNamingConventions The field name 'registrationToken' doesn't match '_[a-z][a-zA-Z0-9]*' 57

fr/paris/lutece/plugins/deviceregistration/dto/ErrorResponse.java

Rule Violation Line
ConstructorCallsOverridableMethod Overridable method 'addMessage' called during object construction 60

fr/paris/lutece/plugins/deviceregistration/rs/Constants.java

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

fr/paris/lutece/plugins/deviceregistration/service/DeviceRegistrationHistoryService.java

Rule Violation Line
ClassWithOnlyPrivateConstructorsShouldBeFinal A class which only has private constructors should be final 4185
FieldNamingConventions The static field name 'instance' doesn't match '_[a-z][a-zA-Z0-9]*' 44

fr/paris/lutece/plugins/deviceregistration/service/DeviceRegistrationService.java

Rule Violation Line
ClassWithOnlyPrivateConstructorsShouldBeFinal A class which only has private constructors should be final 48154
FieldNamingConventions The static field name 'instance' doesn't match '_[a-z][a-zA-Z0-9]*' 51

fr/paris/lutece/plugins/deviceregistration/service/DeviceRegistrationValidator.java

Rule Violation Line
ClassNamingConventions The utility class name 'DeviceRegistrationValidator' doesn't match '[A-Z][a-zA-Z0-9]+(Utils?|Helper|Home|Service)' 4873
ClassWithOnlyPrivateConstructorsShouldBeFinal A class which only has private constructors should be final 4873

Priority 3

fr/paris/lutece/plugins/deviceregistration/business/AbstractFilterDao.java

Rule Violation Line
AbstractClassWithoutAbstractMethod This abstract class does not have any abstract methods 44266
CommentRequired Header comments are required 44266
LooseCoupling Avoid using implementation types like 'HashMap'; use the interface instead 48
UnusedPrivateField Avoid unused private fields such as 'SQL_ASC'. 62
UnusedPrivateField Avoid unused private fields such as 'SQL_DESC'. 63

fr/paris/lutece/plugins/deviceregistration/business/deviceregistration/DeviceRegistration.java

Rule Violation Line
UncommentedEmptyConstructor Document empty constructor 6467
CommentRequired Public method and constructor comments are required 6467
CommentRequired Public method and constructor comments are required 6974
CommentRequired Public method and constructor comments are required 160163
CommentRequired Public method and constructor comments are required 165168

fr/paris/lutece/plugins/deviceregistration/business/deviceregistration/DeviceRegistrationDAO.java

Rule Violation Line
TooManyMethods This class has too many methods, consider refactoring it. 52317
CallSuperInConstructor It is a good practice to call super() in a constructor 6871
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'daoUtil': resource specifications are implicitly final 79
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'daoUtil': resource specifications are implicitly final 98
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'daoUtil': resource specifications are implicitly final 112
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'daoUtil': resource specifications are implicitly final 122
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'daoUtil': resource specifications are implicitly final 148
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'daoUtil': resource specifications are implicitly final 169
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'daoUtil': resource specifications are implicitly final 189
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'daoUtil': resource specifications are implicitly final 223
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'daoUtil': resource specifications are implicitly final 255
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'daoUtil': resource specifications are implicitly final 284

fr/paris/lutece/plugins/deviceregistration/business/deviceregistration/IDeviceRegistrationDAO.java

Rule Violation Line
CommentRequired Public method and constructor comments are required 78
CommentRequired Public method and constructor comments are required 94

fr/paris/lutece/plugins/deviceregistration/business/history/ChangeType.java

Rule Violation Line
CommentRequired Enum comments are required 3640

fr/paris/lutece/plugins/deviceregistration/business/history/DeviceRegistrationHistory.java

Rule Violation Line
CommentRequired Header comments are required 38118
DataClass The class 'DeviceRegistrationHistory' is suspected to be a Data Class (WOC=0.000%, NOPA=0, NOAM=14, WMC=14) 38118
ShortVariable Avoid variables with short names like id 40
ShortVariable Avoid variables with short names like id 53

fr/paris/lutece/plugins/deviceregistration/business/history/DeviceRegistrationHistoryDAO.java

Rule Violation Line
DataClass The class 'DeviceRegistrationHistoryDAO' is suspected to be a Data Class (WOC=0.000%, NOPA=4, NOAM=0, WMC=2) 47161
CommentRequired Header comments are required 47161
CommentRequired Public method and constructor comments are required 5760
CallSuperInConstructor It is a good practice to call super() in a constructor 5760
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'daoUtil': resource specifications are implicitly final 65
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'daoUtil': resource specifications are implicitly final 86
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'daoUtil': resource specifications are implicitly final 130

fr/paris/lutece/plugins/deviceregistration/business/history/DeviceRegistrationHistoryHome.java

Rule Violation Line
CommentRequired Header comments are required 4376
CommentRequired Public method and constructor comments are required 5659
CommentRequired Public method and constructor comments are required 6164

fr/paris/lutece/plugins/deviceregistration/business/history/IDeviceRegistrationHistoryDAO.java

Rule Violation Line
CommentRequired Header comments are required 4157
CommentRequired Public method and constructor comments are required 54
CommentRequired Public method and constructor comments are required 56

fr/paris/lutece/plugins/deviceregistration/dto/DeviceRegistrationRequest.java

Rule Violation Line
CommentRequired Header comments are required 4484
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 46
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 50
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 54
CommentRequired Public method and constructor comments are required 5961
UncommentedEmptyConstructor Document empty constructor 5961
CommentRequired Public method and constructor comments are required 6368

fr/paris/lutece/plugins/deviceregistration/dto/DeviceRegistrationResponse.java

Rule Violation Line
CommentRequired Header comments are required 4174
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 43
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 46
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 49
CommentRequired Public method and constructor comments are required 5257

fr/paris/lutece/plugins/deviceregistration/dto/ErrorResponse.java

Rule Violation Line
CommentRequired Header comments are required 4380
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 45
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 48
CommentRequired Public method and constructor comments are required 5154
CommentRequired Public method and constructor comments are required 5661
CommentRequired Public method and constructor comments are required 6874

fr/paris/lutece/plugins/deviceregistration/exception/DeviceRegistrationException.java

Rule Violation Line
MissingSerialVersionUID Classes implementing Serializable should set a serialVersionUID 4167
CommentRequired Header comments are required 4167
CommentRequired Public method and constructor comments are required 4548
CommentRequired Public method and constructor comments are required 5054
CommentRequired Public method and constructor comments are required 5661

fr/paris/lutece/plugins/deviceregistration/rs/Constants.java

Rule Violation Line
ShortVariable Avoid variables with short names like ID 46

fr/paris/lutece/plugins/deviceregistration/rs/DeviceRegistrationRest.java

Rule Violation Line
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 74
CommentRequired Public method and constructor comments are required 8090
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 96
CommentRequired Public method and constructor comments are required 102109
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 115
CommentRequired Public method and constructor comments are required 121128

fr/paris/lutece/plugins/deviceregistration/rs/SwaggerRest.java

Rule Violation Line
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 140
UseStringBufferForStringAppends Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings 150
UseStringBufferForStringAppends Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings 153

fr/paris/lutece/plugins/deviceregistration/rs/error/UncaughtDeviceRegistrationExceptionMapper.java

Rule Violation Line
CommentRequired Header comments are required 4572
ShortVariable Avoid variables with short names like e 48
ShortVariable Avoid variables with short names like e 58

fr/paris/lutece/plugins/deviceregistration/service/DeviceRegistrationHistoryService.java

Rule Violation Line
CommentRequired Header comments are required 4185
NonThreadSafeSingleton Singleton is not thread safe 6063

fr/paris/lutece/plugins/deviceregistration/service/DeviceRegistrationService.java

Rule Violation Line
CommentRequired Header comments are required 48154
CommentRequired Public method and constructor comments are required 5764
NonThreadSafeSingleton Singleton is not thread safe 5962
UseObjectForClearerAPI Rather than using a lot of String arguments, consider using a container object for those values. 66
CommentRequired Public method and constructor comments are required 6679
CommentRequired Public method and constructor comments are required 81105
UseObjectForClearerAPI Rather than using a lot of String arguments, consider using a container object for those values. 81
CommentRequired Public method and constructor comments are required 107129
UseObjectForClearerAPI Rather than using a lot of String arguments, consider using a container object for those values. 131
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 133

fr/paris/lutece/plugins/deviceregistration/service/DeviceRegistrationValidator.java

Rule Violation Line
CommentRequired Header comments are required 4873
CommentRequired Public method and constructor comments are required 5571

fr/paris/lutece/plugins/deviceregistration/web/AbstractJspBean.java

Rule Violation Line
MissingSerialVersionUID Classes implementing Serializable should set a serialVersionUID 50182
CommentRequired Header comments are required 50182
DefaultPackage Use explicit scoping instead of the default package private level 116
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the getItemsFromIds method if you want a default access modifier 116
DefaultPackage Use explicit scoping instead of the default package private level 118121
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the getPluginDefaultNumberOfItemPerPage method if you want a default access modifier 118121
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 128
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 141

fr/paris/lutece/plugins/deviceregistration/web/DeviceRegistrationHistoryJspBean.java

Rule Violation Line
MissingSerialVersionUID Classes implementing Serializable should set a serialVersionUID 58147
LooseCoupling Avoid using implementation types like 'HashMap'; use the interface instead 75
DefaultPackage Use explicit scoping instead of the default package private level 133139
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the getItemsFromIds method if you want a default access modifier 134139
DefaultPackage Use explicit scoping instead of the default package private level 141145
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the getPluginDefaultNumberOfItemPerPage method if you want a default access modifier 142145

fr/paris/lutece/plugins/deviceregistration/web/DeviceRegistrationJspBean.java

Rule Violation Line
MissingSerialVersionUID Classes implementing Serializable should set a serialVersionUID 59332
LooseCoupling Avoid using implementation types like 'HashMap'; use the interface instead 112
UnusedPrivateField Avoid unused private fields such as '_optionOrderBy'. 113
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 125
DefaultPackage Use explicit scoping instead of the default package private level 166172
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the getItemsFromIds method if you want a default access modifier 167172
DefaultPackage Use explicit scoping instead of the default package private level 174178
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the getPluginDefaultNumberOfItemPerPage method if you want a default access modifier 175178
ConfusingTernary Avoid if (x != y) ..; else ..; 198

Files

fr/paris/lutece/plugins/deviceregistration/business/AbstractFilterDao.java

Rule Violation Priority Line
AbstractClassWithoutAbstractMethod This abstract class does not have any abstract methods 3 44266
CommentRequired Header comments are required 3 44266
LooseCoupling Avoid using implementation types like 'HashMap'; use the interface instead 3 48
UnusedPrivateField Avoid unused private fields such as 'SQL_ASC'. 3 62
UnusedPrivateField Avoid unused private fields such as 'SQL_DESC'. 3 63
FieldNamingConventions The constant name '_listPrefixToRemove' doesn't match '[A-Z][A-Z_0-9]*' 1 74
FieldNamingConventions The constant name '_listTypeAllowedForSearch' doesn't match '[A-Z][A-Z_0-9]*' 1 75

fr/paris/lutece/plugins/deviceregistration/business/deviceregistration/DeviceRegistration.java

Rule Violation Priority Line
UncommentedEmptyConstructor Document empty constructor 3 6467
CommentRequired Public method and constructor comments are required 3 6467
CommentRequired Public method and constructor comments are required 3 6974
CommentRequired Public method and constructor comments are required 3 160163
CommentRequired Public method and constructor comments are required 3 165168

fr/paris/lutece/plugins/deviceregistration/business/deviceregistration/DeviceRegistrationDAO.java

Rule Violation Priority Line
TooManyMethods This class has too many methods, consider refactoring it. 3 52317
CallSuperInConstructor It is a good practice to call super() in a constructor 3 6871
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'daoUtil': resource specifications are implicitly final 3 79
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'daoUtil': resource specifications are implicitly final 3 98
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'daoUtil': resource specifications are implicitly final 3 112
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'daoUtil': resource specifications are implicitly final 3 122
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'daoUtil': resource specifications are implicitly final 3 148
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'daoUtil': resource specifications are implicitly final 3 169
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'daoUtil': resource specifications are implicitly final 3 189
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'daoUtil': resource specifications are implicitly final 3 223
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'daoUtil': resource specifications are implicitly final 3 255
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'daoUtil': resource specifications are implicitly final 3 284

fr/paris/lutece/plugins/deviceregistration/business/deviceregistration/DeviceRegistrationHome.java

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

fr/paris/lutece/plugins/deviceregistration/business/deviceregistration/IDeviceRegistrationDAO.java

Rule Violation Priority Line
CommentRequired Public method and constructor comments are required 3 78
CommentRequired Public method and constructor comments are required 3 94
FormalParameterNamingConventions The method parameter name '_plugin' doesn't match '[a-z][a-zA-Z0-9]*' 1 138

fr/paris/lutece/plugins/deviceregistration/business/history/ChangeType.java

Rule Violation Priority Line
CommentRequired Enum comments are required 3 3640

fr/paris/lutece/plugins/deviceregistration/business/history/DeviceRegistrationHistory.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 38118
DataClass The class 'DeviceRegistrationHistory' is suspected to be a Data Class (WOC=0.000%, NOPA=0, NOAM=14, WMC=14) 3 38118
ShortVariable Avoid variables with short names like id 3 40
FieldNamingConventions The field name 'id' doesn't match '_[a-z][a-zA-Z0-9]*' 1 40
FieldNamingConventions The field name 'createdAt' doesn't match '_[a-z][a-zA-Z0-9]*' 1 41
FieldNamingConventions The field name 'changeType' doesn't match '_[a-z][a-zA-Z0-9]*' 1 42
FieldNamingConventions The field name 'customerId' doesn't match '_[a-z][a-zA-Z0-9]*' 1 43
FieldNamingConventions The field name 'connectionId' doesn't match '_[a-z][a-zA-Z0-9]*' 1 44
FieldNamingConventions The field name 'registrationToken' doesn't match '_[a-z][a-zA-Z0-9]*' 1 45
FieldNamingConventions The field name 'tokenIssuer' doesn't match '_[a-z][a-zA-Z0-9]*' 1 46
ShortVariable Avoid variables with short names like id 3 53

fr/paris/lutece/plugins/deviceregistration/business/history/DeviceRegistrationHistoryDAO.java

Rule Violation Priority Line
DataClass The class 'DeviceRegistrationHistoryDAO' is suspected to be a Data Class (WOC=0.000%, NOPA=4, NOAM=0, WMC=2) 3 47161
CommentRequired Header comments are required 3 47161
CommentRequired Public method and constructor comments are required 3 5760
CallSuperInConstructor It is a good practice to call super() in a constructor 3 5760
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'daoUtil': resource specifications are implicitly final 3 65
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'daoUtil': resource specifications are implicitly final 3 86
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'daoUtil': resource specifications are implicitly final 3 130

fr/paris/lutece/plugins/deviceregistration/business/history/DeviceRegistrationHistoryHome.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 4376
FieldNamingConventions The constant name 'dao' doesn't match '[A-Z][A-Z_0-9]*' 1 46
FieldNamingConventions The constant name 'plugin' doesn't match '[A-Z][A-Z_0-9]*' 1 47
CommentRequired Public method and constructor comments are required 3 5659
CommentRequired Public method and constructor comments are required 3 6164

fr/paris/lutece/plugins/deviceregistration/business/history/IDeviceRegistrationHistoryDAO.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 4157
CommentRequired Public method and constructor comments are required 3 54
CommentRequired Public method and constructor comments are required 3 56

fr/paris/lutece/plugins/deviceregistration/dto/DeviceRegistrationRequest.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 4484
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 3 46
FieldNamingConventions The field name 'customerId' doesn't match '_[a-z][a-zA-Z0-9]*' 1 48
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 3 50
FieldNamingConventions The field name 'connectionId' doesn't match '_[a-z][a-zA-Z0-9]*' 1 52
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 3 54
FieldNamingConventions The field name 'registrationToken' doesn't match '_[a-z][a-zA-Z0-9]*' 1 57
CommentRequired Public method and constructor comments are required 3 5961
UncommentedEmptyConstructor Document empty constructor 3 5961
CommentRequired Public method and constructor comments are required 3 6368

fr/paris/lutece/plugins/deviceregistration/dto/DeviceRegistrationResponse.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 4174
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 3 43
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 3 46
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 3 49
CommentRequired Public method and constructor comments are required 3 5257

fr/paris/lutece/plugins/deviceregistration/dto/ErrorResponse.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 4380
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 3 45
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 3 48
CommentRequired Public method and constructor comments are required 3 5154
CommentRequired Public method and constructor comments are required 3 5661
ConstructorCallsOverridableMethod Overridable method 'addMessage' called during object construction 1 60
CommentRequired Public method and constructor comments are required 3 6874

fr/paris/lutece/plugins/deviceregistration/exception/DeviceRegistrationException.java

Rule Violation Priority Line
MissingSerialVersionUID Classes implementing Serializable should set a serialVersionUID 3 4167
CommentRequired Header comments are required 3 4167
CommentRequired Public method and constructor comments are required 3 4548
CommentRequired Public method and constructor comments are required 3 5054
CommentRequired Public method and constructor comments are required 3 5661

fr/paris/lutece/plugins/deviceregistration/rs/Constants.java

Rule Violation Priority Line
ClassNamingConventions The utility class name 'Constants' doesn't match '[A-Z][a-zA-Z0-9]+(Utils?|Helper|Home|Service)' 1 3980
ShortVariable Avoid variables with short names like ID 3 46

fr/paris/lutece/plugins/deviceregistration/rs/DeviceRegistrationRest.java

Rule Violation Priority Line
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 3 74
CommentRequired Public method and constructor comments are required 3 8090
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 3 96
CommentRequired Public method and constructor comments are required 3 102109
UnnecessaryAnnotationValueElement Avoid the use of value in annotations when its the only element 3 115
CommentRequired Public method and constructor comments are required 3 121128

fr/paris/lutece/plugins/deviceregistration/rs/SwaggerRest.java

Rule Violation Priority Line
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 140
UseStringBufferForStringAppends Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings 3 150
UseStringBufferForStringAppends Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings 3 153

fr/paris/lutece/plugins/deviceregistration/rs/error/UncaughtDeviceRegistrationExceptionMapper.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 4572
ShortVariable Avoid variables with short names like e 3 48
ShortVariable Avoid variables with short names like e 3 58

fr/paris/lutece/plugins/deviceregistration/service/DeviceRegistrationHistoryService.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 4185
ClassWithOnlyPrivateConstructorsShouldBeFinal A class which only has private constructors should be final 1 4185
FieldNamingConventions The static field name 'instance' doesn't match '_[a-z][a-zA-Z0-9]*' 1 44
NonThreadSafeSingleton Singleton is not thread safe 3 6063

fr/paris/lutece/plugins/deviceregistration/service/DeviceRegistrationService.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 48154
ClassWithOnlyPrivateConstructorsShouldBeFinal A class which only has private constructors should be final 1 48154
FieldNamingConventions The static field name 'instance' doesn't match '_[a-z][a-zA-Z0-9]*' 1 51
CommentRequired Public method and constructor comments are required 3 5764
NonThreadSafeSingleton Singleton is not thread safe 3 5962
UseObjectForClearerAPI Rather than using a lot of String arguments, consider using a container object for those values. 3 66
CommentRequired Public method and constructor comments are required 3 6679
CommentRequired Public method and constructor comments are required 3 81105
UseObjectForClearerAPI Rather than using a lot of String arguments, consider using a container object for those values. 3 81
CommentRequired Public method and constructor comments are required 3 107129
UseObjectForClearerAPI Rather than using a lot of String arguments, consider using a container object for those values. 3 131
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 133

fr/paris/lutece/plugins/deviceregistration/service/DeviceRegistrationValidator.java

Rule Violation Priority Line
ClassNamingConventions The utility class name 'DeviceRegistrationValidator' doesn't match '[A-Z][a-zA-Z0-9]+(Utils?|Helper|Home|Service)' 1 4873
ClassWithOnlyPrivateConstructorsShouldBeFinal A class which only has private constructors should be final 1 4873
CommentRequired Header comments are required 3 4873
CommentRequired Public method and constructor comments are required 3 5571

fr/paris/lutece/plugins/deviceregistration/web/AbstractJspBean.java

Rule Violation Priority Line
MissingSerialVersionUID Classes implementing Serializable should set a serialVersionUID 3 50182
CommentRequired Header comments are required 3 50182
DefaultPackage Use explicit scoping instead of the default package private level 3 116
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the getItemsFromIds method if you want a default access modifier 3 116
DefaultPackage Use explicit scoping instead of the default package private level 3 118121
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the getPluginDefaultNumberOfItemPerPage method if you want a default access modifier 3 118121
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 128
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 141

fr/paris/lutece/plugins/deviceregistration/web/DeviceRegistrationHistoryJspBean.java

Rule Violation Priority Line
MissingSerialVersionUID Classes implementing Serializable should set a serialVersionUID 3 58147
LooseCoupling Avoid using implementation types like 'HashMap'; use the interface instead 3 75
DefaultPackage Use explicit scoping instead of the default package private level 3 133139
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the getItemsFromIds method if you want a default access modifier 3 134139
DefaultPackage Use explicit scoping instead of the default package private level 3 141145
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the getPluginDefaultNumberOfItemPerPage method if you want a default access modifier 3 142145

fr/paris/lutece/plugins/deviceregistration/web/DeviceRegistrationJspBean.java

Rule Violation Priority Line
MissingSerialVersionUID Classes implementing Serializable should set a serialVersionUID 3 59332
LooseCoupling Avoid using implementation types like 'HashMap'; use the interface instead 3 112
UnusedPrivateField Avoid unused private fields such as '_optionOrderBy'. 3 113
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 125
DefaultPackage Use explicit scoping instead of the default package private level 3 166172
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the getItemsFromIds method if you want a default access modifier 3 167172
DefaultPackage Use explicit scoping instead of the default package private level 3 174178
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the getPluginDefaultNumberOfItemPerPage method if you want a default access modifier 3 175178
ConfusingTernary Avoid if (x != y) ..; else ..; 3 198