Fork me on GitHub

Résultats PMD

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

Fichiers

fr/paris/lutece/plugins/directory/modules/pdfproducerarchive/business/listener/DirectoryPDFProducerRemovalListener.java

Violation Ligne
Avoid variables with short names like id 58

fr/paris/lutece/plugins/directory/modules/pdfproducerarchive/business/zipbasket/ZipBasketDAO.java

Violation Ligne
Use block level rather than method level synchronization 90105
Avoid using a branching statement as the last in a loop. 268

fr/paris/lutece/plugins/directory/modules/pdfproducerarchive/business/zipbasket/queue/ZipItem.java

Violation Ligne
Returning '_listIdRecord' may expose an internal array. 41
Consider using varargs for methods or constructors which take an array the last parameter. 48
The user-supplied array 'listIdRecord' is stored directly. 48

fr/paris/lutece/plugins/directory/modules/pdfproducerarchive/service/DirectoryManageZipBasketService.java

Violation Ligne
The String literal "\n\tChanging zip status to '" appears 4 times in this file; the first occurrence is on line 358 358

fr/paris/lutece/plugins/directory/modules/pdfproducerarchive/service/DirectoryPDFProducerArchiveResourceIdService.java

Violation Ligne
Avoid variables with short names like rt 86
Avoid variables with short names like p 97

fr/paris/lutece/plugins/directory/modules/pdfproducerarchive/service/ZipService.java

Violation Ligne
Avoid variables with short names like os 127
Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 152
Rather than using a lot of String arguments, consider using a container object for those values. 215216

fr/paris/lutece/plugins/directory/modules/pdfproducerarchive/service/daemon/AddZipToBasketDaemon.java

Violation Ligne
The class 'AddZipToBasketDaemon' has a Cyclomatic Complexity of 6 (Highest = 13). 19175
The class 'AddZipToBasketDaemon' has a Standard Cyclomatic Complexity of 6 (Highest = 13). 19175
The class 'AddZipToBasketDaemon' has a Modified Cyclomatic Complexity of 6 (Highest = 13). 19175
If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 25
The method 'run' has a Standard Cyclomatic Complexity of 13. 31124
The method 'run' has a Cyclomatic Complexity of 13. 31124
The method 'run' has a Modified Cyclomatic Complexity of 13. 31124
Avoid using Literals in Conditional Statements 48
Use block level rather than method level synchronization 126155
Use block level rather than method level synchronization 157168
Consider simply returning the value vs storing it in local variable 'item' 166
Use block level rather than method level synchronization 170173

fr/paris/lutece/plugins/directory/modules/pdfproducerarchive/service/daemon/AsyncAddZipBasketService.java

Violation Ligne
The class 'AsyncAddZipBasketService' has a Cyclomatic Complexity of 5 (Highest = 12). 20135
The user-supplied array 'listIdRecord' is stored directly. 55
Consider using varargs for methods or constructors which take an array the last parameter. 55
The method 'run' has a Cyclomatic Complexity of 12. 69134

fr/paris/lutece/plugins/directory/modules/pdfproducerarchive/service/daemon/ZipCleanerDaemon.java

Violation Ligne
Private field '_manageZipBasketService' could be made final; it is only initialized in the declaration or constructor. 65
StringBuffer constructor is initialized with size 16, but has at least 52 characters appended. 73

fr/paris/lutece/plugins/directory/modules/pdfproducerarchive/utils/FilesUtils.java

Violation Ligne
The class 'FilesUtils' has a Cyclomatic Complexity of 4 (Highest = 12). 74330
Avoid variables with short names like sz 99
These nested if statements could be combined 116119
These nested if statements could be combined 133136
The method 'getAllFilesRecorded' has a Cyclomatic Complexity of 12. 163215
Avoid declaring a variable if it is unreferenced before a possible exit point. 167

fr/paris/lutece/plugins/directory/modules/pdfproducerarchive/web/ZipBasketJspBean.java

Violation Ligne
A high number of imports can indicate a high degree of coupling within an object. 34592
The class 'ZipBasketJspBean' has a Cyclomatic Complexity of 5 (Highest = 12). 85592
Avoid unused private fields such as '_manageConfigProducerService'. 137
If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 158
The method 'getConfirmAddZipBasket' has a Cyclomatic Complexity of 12. 213266
Deeply nested if..then statements are hard to read 230233
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 544
Assigning an Object to null is a code smell. Consider refactoring. 564

fr/paris/lutece/plugins/directory/modules/pdfproducerarchive/web/action/ZipBasketAction.java

Violation Ligne
Avoid unnecessary if..then..else statements when returning booleans 116119