Fork me on GitHub

PMD Results

The following document contains the results of PMD 6.13.0.

Violations By Priority

Priority 2

fr/paris/lutece/plugins/librarynotifygru/rs/service/AbstractNotificationTransportRest.java

Rule Violation Line
LoggerIsNotStaticFinal The Logger variable declaration does not contain the static and final modifiers 59
GuardLogStatement Logger calls should be surrounded by log level guards. 121

fr/paris/lutece/plugins/librarynotifygru/rs/service/NotificationTransportApiManagerRest.java

Rule Violation Line
LoggerIsNotStaticFinal The Logger variable declaration does not contain the static and final modifiers 67
GuardLogStatement Logger calls should be surrounded by log level guards. 113

fr/paris/lutece/plugins/librarynotifygru/services/HttpAccessTransport.java

Rule Violation Line
LoggerIsNotStaticFinal The Logger variable declaration does not contain the static and final modifiers 58

Priority 3

fr/paris/lutece/plugins/librarynotifygru/rs/service/AbstractNotificationTransportRest.java

Rule Violation Line
CyclomaticComplexity The method 'send(Notification)' has a cyclomatic complexity of 10. 119171
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 123
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 123
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 124
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 124

fr/paris/lutece/plugins/librarynotifygru/rs/service/NotificationTransportApiManagerRest.java

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

fr/paris/lutece/plugins/librarynotifygru/services/HttpAccessTransport.java

Rule Violation Line
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 67
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 67
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 93
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 93
UnnecessaryLocalBeforeReturn Consider simply returning the value vs storing it in local variable 'oResponse' 103

fr/paris/lutece/plugins/librarynotifygru/services/IHttpTransportProvider.java

Rule Violation Line
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'HTTP_HEADER_ACCEPT': the field is declared in an interface type 47
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'HTTP_HEADER_CONTENT_TYPE': the field is declared in an interface type 48
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'HTTP_HEADER_AUTHORIZATION': the field is declared in an interface type 49
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'HTTP_HEADER_MEDIATYPE_APPLICATION_FORM_URLENCODED': the field is declared in an interface type 50
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'HTTP_HEADER_MEDIATYPE_APPLICATION_JSON': the field is declared in an interface type 51
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'HTTP_HEADER_MEDIATYPE_APPLICATION_JSON_UTF8': the field is declared in an interface type 52

Files

fr/paris/lutece/plugins/librarynotifygru/rs/service/AbstractNotificationTransportRest.java

Rule Violation Priority Line
LoggerIsNotStaticFinal The Logger variable declaration does not contain the static and final modifiers 2 59
CyclomaticComplexity The method 'send(Notification)' has a cyclomatic complexity of 10. 3 119171
GuardLogStatement Logger calls should be surrounded by log level guards. 2 121
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 123
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 123
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 124
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 124

fr/paris/lutece/plugins/librarynotifygru/rs/service/NotificationTransportApiManagerRest.java

Rule Violation Priority Line
LoggerIsNotStaticFinal The Logger variable declaration does not contain the static and final modifiers 2 67
GuardLogStatement Logger calls should be surrounded by log level guards. 2 113
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 115
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 115
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 116
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 116

fr/paris/lutece/plugins/librarynotifygru/services/HttpAccessTransport.java

Rule Violation Priority Line
LoggerIsNotStaticFinal The Logger variable declaration does not contain the static and final modifiers 2 58
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 67
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 67
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 93
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 93
UnnecessaryLocalBeforeReturn Consider simply returning the value vs storing it in local variable 'oResponse' 3 103

fr/paris/lutece/plugins/librarynotifygru/services/IHttpTransportProvider.java

Rule Violation Priority Line
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'HTTP_HEADER_ACCEPT': the field is declared in an interface type 3 47
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'HTTP_HEADER_CONTENT_TYPE': the field is declared in an interface type 3 48
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'HTTP_HEADER_AUTHORIZATION': the field is declared in an interface type 3 49
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'HTTP_HEADER_MEDIATYPE_APPLICATION_FORM_URLENCODED': the field is declared in an interface type 3 50
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'HTTP_HEADER_MEDIATYPE_APPLICATION_JSON': the field is declared in an interface type 3 51
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'HTTP_HEADER_MEDIATYPE_APPLICATION_JSON_UTF8': the field is declared in an interface type 3 52