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/geocodesclient/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)' 3989

fr/paris/lutece/plugins/geocodesclient/rs/GeocodesRest.java

Rule Violation Line
FieldNamingConventions The constant name 'cityMinChars' doesn't match '[A-Z][A-Z_0-9]*' 73
FieldNamingConventions The constant name 'countryMinChars' doesn't match '[A-Z][A-Z_0-9]*' 74

Priority 2

fr/paris/lutece/plugins/geocodesclient/rs/GeocodesRest.java

Rule Violation Line
BrokenNullCheck Method call on object which may be null 165177

Priority 3

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

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

fr/paris/lutece/plugins/geocodesclient/rs/GeocodesRest.java

Rule Violation Line
SimpleDateFormatNeedsLocale When instantiating a SimpleDateFormat object, specify a Locale 84
UnsynchronizedStaticFormatter Static Formatter objects should be accessed in a synchronized manner 121
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 173
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 201
UnsynchronizedStaticFormatter Static Formatter objects should be accessed in a synchronized manner 211
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 238
UnsynchronizedStaticFormatter Static Formatter objects should be accessed in a synchronized manner 275
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 302
UnsynchronizedStaticFormatter Static Formatter objects should be accessed in a synchronized manner 339
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 372

Files

fr/paris/lutece/plugins/geocodesclient/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 3989
ShortVariable Avoid variables with short names like ID 3 45

fr/paris/lutece/plugins/geocodesclient/rs/GeocodesRest.java

Rule Violation Priority Line
FieldNamingConventions The constant name 'cityMinChars' doesn't match '[A-Z][A-Z_0-9]*' 1 73
FieldNamingConventions The constant name 'countryMinChars' doesn't match '[A-Z][A-Z_0-9]*' 1 74
SimpleDateFormatNeedsLocale When instantiating a SimpleDateFormat object, specify a Locale 3 84
UnsynchronizedStaticFormatter Static Formatter objects should be accessed in a synchronized manner 3 121
BrokenNullCheck Method call on object which may be null 2 165177
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 173
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 201
UnsynchronizedStaticFormatter Static Formatter objects should be accessed in a synchronized manner 3 211
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 238
UnsynchronizedStaticFormatter Static Formatter objects should be accessed in a synchronized manner 3 275
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 302
UnsynchronizedStaticFormatter Static Formatter objects should be accessed in a synchronized manner 3 339
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 372