Fork me on GitHub

PMD Results

The following document contains the results of PMD 5.5.1.

Files

fr/paris/lutece/plugins/ocra2ia/business/A2iaOutput.java

Violation Line
Private field '_strKey' could be made final; it is only initialized in the declaration or constructor. 46
Private field '_strOutputZoneName' could be made final; it is only initialized in the declaration or constructor. 51
Do not use the short type 56
Do not use the short type 62
Do not use the short type 79
Do not use the short type 84

fr/paris/lutece/plugins/ocra2ia/service/OcrService.java

Violation Line
A high number of imports can indicate a high degree of coupling within an object. 34677
Possible God class (WMC=65, ATFD=120, TCC=0.029411764705882353) 34677
The class 'OcrService' has a Cyclomatic Complexity of 5 (Highest = 15). 78677
Use block level rather than method level synchronization 124179
Avoid declaring a variable if it is unreferenced before a possible exit point. 131
If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 202
Avoid instantiating Long objects.Call Long.valueOf() instead 209
Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 218
New exception is thrown in catch block, original stack trace may be lost 221
A throw statement in a finally block makes the control flow hard to understand. 223248
Avoid instantiating Long objects.Call Long.valueOf() instead 227
Avoid instantiating Long objects.Call Long.valueOf() instead 231
New exception is thrown in catch block, original stack trace may be lost 244
Avoid instantiating Long objects.Call Long.valueOf() instead 268
Avoid instantiating Long objects.Call Long.valueOf() instead 270
Avoid instantiating Long objects.Call Long.valueOf() instead 272
Avoid instantiating Long objects.Call Long.valueOf() instead 276
Avoid instantiating Long objects.Call Long.valueOf() instead 303
Avoid instantiating Long objects.Call Long.valueOf() instead 324
New exception is thrown in catch block, original stack trace may be lost 354
The method trasformImagetoJacobOject() has an NPath complexity of 240 369422
A throw statement in a finally block makes the control flow hard to understand. 408419
The method 'setValueImageExtensionAndContent' has a Cyclomatic Complexity of 15. 498568
Avoid declaring a variable if it is unreferenced before a possible exit point. 615
Avoid declaring a variable if it is unreferenced before a possible exit point. 616
Avoid using Literals in Conditional Statements 619
Use explicit scoping instead of the default package private level 641
Use explicit scoping instead of the default package private level 642
Use explicit scoping instead of the default package private level 643
Returning '_byteContent' may expose an internal array. 657
The user-supplied array '_byteContent' is stored directly. 660

fr/paris/lutece/plugins/ocra2ia/util/OcrResultUtils.java

Violation Line
The class 'OcrResultUtils' has a Cyclomatic Complexity of 3 (Highest = 10). 52337
If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 110
If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 153
If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 185
The method 'getA2iaOutputResultMultiLines' has a Cyclomatic Complexity of 10. 256297
Avoid appending characters as strings in StringBuffer.append. 270
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 329
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 330