Fork me on GitHub

PMD Results

The following document contains the results of PMD 5.3.5.

Files

fr/paris/lutece/plugins/workflow/modules/fillingdirectory/business/EntryTypeFileHistory.java

Violation Line
This final field could be made static 47
It is a good practice to call super() in a constructor 5356

fr/paris/lutece/plugins/workflow/modules/fillingdirectory/business/EntryTypeImgHistory.java

Violation Line
This final field could be made static 47
It is a good practice to call super() in a constructor 5358

fr/paris/lutece/plugins/workflow/modules/fillingdirectory/business/FileHistoryDAO.java

Violation Line
Use block level rather than method level synchronization 84108

fr/paris/lutece/plugins/workflow/modules/fillingdirectory/business/PhysicalFileHistoryDAO.java

Violation Line
Use block level rather than method level synchronization 8394

fr/paris/lutece/plugins/workflow/modules/fillingdirectory/business/RecordFieldHistoryDAO.java

Violation Line
Use block level rather than method level synchronization 70103

fr/paris/lutece/plugins/workflow/modules/fillingdirectory/business/TaskFillingDirectoryConfigDAO.java

Violation Line
Use block level rather than method level synchronization 6682

fr/paris/lutece/plugins/workflow/modules/fillingdirectory/business/TaskFillingRemovalListener.java

Violation Line
Avoid declaring a variable if it is unreferenced before a possible exit point. 65

fr/paris/lutece/plugins/workflow/modules/fillingdirectory/business/TaskHelpFillingConfigDAO.java

Violation Line
Use block level rather than method level synchronization 85102
Use block level rather than method level synchronization 146167
If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 297

fr/paris/lutece/plugins/workflow/modules/fillingdirectory/service/FileImgService.java

Violation Line
Private field '_fileHistoryService' could be made final; it is only initialized in the declaration or constructor. 57
Private field '_physicalFileHistoryService' could be made final; it is only initialized in the declaration or constructor. 58
Document empty constructor 6365
Assigning an Object to null is a code smell. Consider refactoring. 96

fr/paris/lutece/plugins/workflow/modules/fillingdirectory/service/ListEntries.java

Violation Line
A getX() method which returns a boolean should be named isX() 9194
A getX() method which returns a boolean should be named isX() 123127

fr/paris/lutece/plugins/workflow/modules/fillingdirectory/service/TaskFillingDirectory.java

Violation Line
A high number of imports can indicate a high degree of coupling within an object. 34300
The class 'TaskFillingDirectory' has a Cyclomatic Complexity of 4 (Highest = 16). 80300
The class 'TaskFillingDirectory' has a Standard Cyclomatic Complexity of 4 (Highest = 12). 80300
The class 'TaskFillingDirectory' has a Modified Cyclomatic Complexity of 4 (Highest = 12). 80300
The method 'processTask' has a Modified Cyclomatic Complexity of 12. 117239
The method 'processTask' has a Cyclomatic Complexity of 16. 117239
Avoid really long methods. 117239
The method 'processTask' has a Standard Cyclomatic Complexity of 12. 117239
Avoid using Literals in Conditional Statements 188
Avoid throwing raw exception types. 235

fr/paris/lutece/plugins/workflow/modules/fillingdirectory/service/TaskHelpFilling.java

Violation Line
The class 'TaskHelpFilling' has a Cyclomatic Complexity of 5 (Highest = 12). 40244
The class 'TaskHelpFilling' has a Standard Cyclomatic Complexity of 4 (Highest = 10). 40244
The class 'TaskHelpFilling' has a Modified Cyclomatic Complexity of 4 (Highest = 10). 40244
The method 'processTask' has a Cyclomatic Complexity of 12. 69129
The method 'processTask' has a Modified Cyclomatic Complexity of 10. 69129
The method 'processTask' has a Standard Cyclomatic Complexity of 10. 69129
The method processTask() has an NPath complexity of 510 69129
Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 121

fr/paris/lutece/plugins/workflow/modules/fillingdirectory/utils/TaskFillingDirectoryUtils.java

Violation Line
Avoid declaring a variable if it is unreferenced before a possible exit point. 131
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 140

fr/paris/lutece/plugins/workflow/modules/fillingdirectory/web/DoDownloadHistoryFile.java

Violation Line
Assigning an Object to null is a code smell. Consider refactoring. 91
Avoid variables with short names like os 102

fr/paris/lutece/plugins/workflow/modules/fillingdirectory/web/FillingDirectoryTaskComponent.java

Violation Line
A high number of imports can indicate a high degree of coupling within an object. 34702
Possible God class (WMC=78, ATFD=172, TCC=0.2) 34702
The class 'FillingDirectoryTaskComponent' has a Cyclomatic Complexity of 14 (Highest = 24). 95702
The class 'FillingDirectoryTaskComponent' has a Standard Cyclomatic Complexity of 10 (Highest = 14). 95702
The class 'FillingDirectoryTaskComponent' has a Modified Cyclomatic Complexity of 10 (Highest = 14). 95702
Avoid excessively long variable names like MESSAGE_NO_CONFIGURATION_FOR_TASK_EVALUATION_EXPERT 131
The method 'doSaveConfig' has a Cyclomatic Complexity of 24. 160270
Avoid really long methods. 160270
The method 'doSaveConfig' has a Modified Cyclomatic Complexity of 14. 160270
The method 'doSaveConfig' has a Standard Cyclomatic Complexity of 14. 160270
Avoid declaring a variable if it is unreferenced before a possible exit point. 169
Deeply nested if..then statements are hard to read 217220
Deeply nested if..then statements are hard to read 223229
The method 'doValidateTask' has a Cyclomatic Complexity of 13. 276383
The method 'doValidateTask' has a Standard Cyclomatic Complexity of 11. 276383
The method 'doValidateTask' has a Modified Cyclomatic Complexity of 11. 276383
Avoid really long methods. 276383
Avoid declaring a variable if it is unreferenced before a possible exit point. 281
Avoid declaring a variable if it is unreferenced before a possible exit point. 283
Avoid declaring a variable if it is unreferenced before a possible exit point. 284
Avoid declaring a variable if it is unreferenced before a possible exit point. 285
The method 'getDisplayConfigForm' has a Modified Cyclomatic Complexity of 14. 389501
The method getDisplayConfigForm() has an NPath complexity of 640 389501
The method 'getDisplayConfigForm' has a Standard Cyclomatic Complexity of 14. 389501
Avoid really long methods. 389501
The method 'getDisplayConfigForm' has a Cyclomatic Complexity of 16. 389501
If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 395
No need to call String.valueOf to append to a string. 427
No need to call String.valueOf to append to a string. 438
If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 510
If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 597
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 607
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 654
If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 663

fr/paris/lutece/plugins/workflow/modules/fillingdirectory/web/HelpFillingJspBean.java

Violation Line
A high number of imports can indicate a high degree of coupling within an object. 34214
The class 'HelpFillingJspBean' has a Cyclomatic Complexity of 12 (Highest = 11). 72214
The class 'HelpFillingJspBean' has a Modified Cyclomatic Complexity of 11 (Highest = 10). 72214
The class 'HelpFillingJspBean' has a Standard Cyclomatic Complexity of 11 (Highest = 10). 72214
Private field '_recordService' could be made final; it is only initialized in the declaration or constructor. 100
Private field '_listEntriesService' could be made final; it is only initialized in the declaration or constructor. 101
The method 'getModifyDirectoryRecordPopup' has a Modified Cyclomatic Complexity of 10. 110212
Avoid really long methods. 110212
The method 'getModifyDirectoryRecordPopup' has a Standard Cyclomatic Complexity of 10. 110212
The method 'getModifyDirectoryRecordPopup' has a Cyclomatic Complexity of 11. 110212
The method getModifyDirectoryRecordPopup() has an NPath complexity of 432 110212
Avoid declaring a variable if it is unreferenced before a possible exit point. 115
If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 176
If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 186

fr/paris/lutece/plugins/workflow/modules/fillingdirectory/web/HelpFillingTaskComponent.java

Violation Line
Possible God class (WMC=72, ATFD=105, TCC=0.04395604395604396) 34629
A high number of imports can indicate a high degree of coupling within an object. 34629
The class 'HelpFillingTaskComponent' has a Standard Cyclomatic Complexity of 5 (Highest = 14). 88629
The class 'HelpFillingTaskComponent' has a Modified Cyclomatic Complexity of 5 (Highest = 14). 88629
The class 'HelpFillingTaskComponent' has a Cyclomatic Complexity of 5 (Highest = 21). 88629
Avoid unused private fields such as '_taskComponentManager'. 123
If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 259
Avoid variables with short names like e 291
This for loop could be simplified to a while loop 292299
Avoid variables with short names like v 294
Avoid variables with short names like e 310
This for loop could be simplified to a while loop 311318
Avoid variables with short names like v 313
The method doActionList() has an NPath complexity of 225 328349
Avoid variables with short names like n1 332
Avoid variables with short names like n2 333
The method 'getDisplayConfigForm' has a Standard Cyclomatic Complexity of 14. 352463
The method 'getDisplayConfigForm' has a Cyclomatic Complexity of 21. 352463
Avoid really long methods. 352463
The method getDisplayConfigForm() has an NPath complexity of 7200 352463
The method 'getDisplayConfigForm' has a Modified Cyclomatic Complexity of 14. 352463
If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 357
Avoid variables with short names like e 475
This for loop could be simplified to a while loop 477484
Avoid variables with short names like v 479
If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 577
If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 608