Fork me on GitHub

Résultats PMD

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

Fichiers

fr/paris/lutece/plugins/threadlogger/service/ThreadLoggerLauncherStartUpService.java

Violation Ligne
Avoid unused imports such as 'fr.paris.lutece.portal.service.daemon.DaemonEntry' 36
Avoid unused imports such as 'fr.paris.lutece.portal.service.daemon.DaemonEntry' 36
Prefer StringBuffer over += for concatenating strings 76

fr/paris/lutece/plugins/threadlogger/service/ThreadLoggerService.java

Violation Ligne
The class 'ThreadLoggerService' has a Cyclomatic Complexity of 4 (Highest = 11). 52227
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. 53227
The method 'watchThreads' has a Cyclomatic Complexity of 11. 60131
Consider using varargs for methods or constructors which take an array the last parameter. 60
Avoid appending characters as strings in StringBuffer.append. 82
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 90
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 91
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 92
Deeply nested if..then statements are hard to read 99102
Deeply nested if..then statements are hard to read 106109
Deeply nested if..then statements are hard to read 113116
Deeply nested if..then statements are hard to read 120123
Return an empty array rather than null. 133145
Consider using varargs for methods or constructors which take an array the last parameter. 152
Avoid appending characters as strings in StringBuffer.append. 154
Avoid appending characters as strings in StringBuffer.append. 158
Avoid appending characters as strings in StringBuffer.append. 159
Avoid appending characters as strings in StringBuffer.append. 159
Consider using varargs for methods or constructors which take an array the last parameter. 169
Avoid appending characters as strings in StringBuffer.append. 173
Consider using varargs for methods or constructors which take an array the last parameter. 177
Avoid appending characters as strings in StringBuffer.append. 181
Avoid appending characters as strings in StringBuffer.append. 187
Avoid appending characters as strings in StringBuffer.append. 188
Avoid appending characters as strings in StringBuffer.append. 189
Consider using varargs for methods or constructors which take an array the last parameter. 200
Avoid variables with short names like o2 222
Avoid variables with short names like o1 222

fr/paris/lutece/plugins/threadlogger/service/WatcherThread.java

Violation Ligne
Consider using varargs for methods or constructors which take an array the last parameter. 48
The user-supplied array 'states' is stored directly. 48