Fork me on GitHub

Résultats PMD

Le document suivant contient les résultats de PMD 6.13.0.

Violations By Priority

Priority 2

fr/paris/lutece/util/jwt/service/JWTUtil.java

Rule Violation Ligne
AvoidReassigningParameters Avoid reassigning parameters such as 'strBase64JWT' 165

Priority 3

fr/paris/lutece/util/jwt/service/JWTUtil.java

Rule Violation Ligne
UseUtilityClass All methods are static. Consider using a utility class instead. Alternatively, you could add a private constructor or make the class abstract to silence this warning. 58329
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 127
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 176
UnnecessaryLocalBeforeReturn Consider simply returning the value vs storing it in local variable 'key' 265
EmptyCatchBlock Avoid empty catch blocks 267269
UseLocaleWithCaseConversions When doing a String.toLowerCase()/toUpperCase() call, use a Locale 289
UseIndexOfChar String.indexOf(char) is faster than String.indexOf(String). 326
ShortVariable Avoid variables with short names like i 326

Fichiers

fr/paris/lutece/util/jwt/service/JWTUtil.java

Rule Violation Priority Ligne
UseUtilityClass All methods are static. Consider using a utility class instead. Alternatively, you could add a private constructor or make the class abstract to silence this warning. 3 58329
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 127
AvoidReassigningParameters Avoid reassigning parameters such as 'strBase64JWT' 2 165
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 176
UnnecessaryLocalBeforeReturn Consider simply returning the value vs storing it in local variable 'key' 3 265
EmptyCatchBlock Avoid empty catch blocks 3 267269
UseLocaleWithCaseConversions When doing a String.toLowerCase()/toUpperCase() call, use a Locale 3 289
UseIndexOfChar String.indexOf(char) is faster than String.indexOf(String). 3 326
ShortVariable Avoid variables with short names like i 3 326