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/leaflet/business/GeolocItem.java

Rule Violation Line
FieldNamingConventions The constant name '_objectMapper' doesn't match '[A-Z][A-Z_0-9]*' 77
AvoidThrowingRawExceptionTypes Avoid throwing raw exception types. 272
FormalParameterNamingConventions The method parameter name '_typegeometry' doesn't match '[a-z][a-zA-Z0-9]*' 323

fr/paris/lutece/plugins/leaflet/business/GeolocItemPolygon.java

Rule Violation Line
FieldNamingConventions The constant name '_objectMapper' doesn't match '[A-Z][A-Z_0-9]*' 84
AvoidThrowingRawExceptionTypes Avoid throwing raw exception types. 253
FormalParameterNamingConventions The method parameter name '_typegeometry' doesn't match '[a-z][a-zA-Z0-9]*' 299

fr/paris/lutece/plugins/leaflet/service/IconService.java

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

Priority 3

fr/paris/lutece/plugins/leaflet/business/GeolocItem.java

Rule Violation Line
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 146
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 174

fr/paris/lutece/plugins/leaflet/business/GeolocItemPolygon.java

Rule Violation Line
UnusedPrivateField Avoid unused private fields such as '_typePolygon'. 98
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 147
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 170

fr/paris/lutece/plugins/leaflet/rest/rs/LeafletRest.java

Rule Violation Line
PreserveStackTrace New exception is thrown in catch block, original stack trace may be lost 127

fr/paris/lutece/plugins/leaflet/service/CorsUtils.java

Rule Violation Line
CommentRequired Header comments are required 48109
ForLoopCanBeForeach This for loop can be replaced by a foreach loop 95102

fr/paris/lutece/plugins/leaflet/service/IconService.java

Rule Violation Line
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 72
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 81
UnnecessaryLocalBeforeReturn Consider simply returning the value vs storing it in local variable 'result' 83

Files

fr/paris/lutece/plugins/leaflet/business/GeolocItem.java

Rule Violation Priority Line
FieldNamingConventions The constant name '_objectMapper' doesn't match '[A-Z][A-Z_0-9]*' 1 77
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 146
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 174
AvoidThrowingRawExceptionTypes Avoid throwing raw exception types. 1 272
FormalParameterNamingConventions The method parameter name '_typegeometry' doesn't match '[a-z][a-zA-Z0-9]*' 1 323

fr/paris/lutece/plugins/leaflet/business/GeolocItemPolygon.java

Rule Violation Priority Line
FieldNamingConventions The constant name '_objectMapper' doesn't match '[A-Z][A-Z_0-9]*' 1 84
UnusedPrivateField Avoid unused private fields such as '_typePolygon'. 3 98
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 147
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 170
AvoidThrowingRawExceptionTypes Avoid throwing raw exception types. 1 253
FormalParameterNamingConventions The method parameter name '_typegeometry' doesn't match '[a-z][a-zA-Z0-9]*' 1 299

fr/paris/lutece/plugins/leaflet/rest/rs/LeafletRest.java

Rule Violation Priority Line
PreserveStackTrace New exception is thrown in catch block, original stack trace may be lost 3 127

fr/paris/lutece/plugins/leaflet/service/CorsUtils.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 48109
ForLoopCanBeForeach This for loop can be replaced by a foreach loop 3 95102

fr/paris/lutece/plugins/leaflet/service/IconService.java

Rule Violation Priority Line
ClassWithOnlyPrivateConstructorsShouldBeFinal A class which only has private constructors should be final 1 52110
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 72
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 81
UnnecessaryLocalBeforeReturn Consider simply returning the value vs storing it in local variable 'result' 3 83