Fork me on GitHub

Résultats PMD

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

Fichiers

fr/paris/lutece/plugins/aot/modules/declarationimmat/business/Authorization.java

Violation Ligne
Avoid declaring a variable if it is unreferenced before a possible exit point. 250
Avoid declaring a variable if it is unreferenced before a possible exit point. 251
Avoid declaring a variable if it is unreferenced before a possible exit point. 252
When instantiating a SimpleDateFormat object, specify a Locale 274

fr/paris/lutece/plugins/aot/modules/declarationimmat/business/PlaceGroup.java

Violation Ligne
If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 22
Document empty constructor 3032

fr/paris/lutece/plugins/aot/modules/declarationimmat/business/Site.java

Violation Ligne
Avoid short class names like Site 54175

fr/paris/lutece/plugins/aot/modules/declarationimmat/service/SNDIService.java

Violation Ligne
A high number of imports can indicate a high degree of coupling within an object. 1210
Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 116
Avoid throwing raw exception types. 118
A method/constructor shouldnt explicitly throw java.lang.Exception 135
A method/constructor shouldnt explicitly throw java.lang.Exception 135
A method/constructor shouldnt explicitly throw java.lang.Exception 151
A method/constructor shouldnt explicitly throw java.lang.Exception 151
A method/constructor shouldnt explicitly throw java.lang.Exception 171
A method/constructor shouldnt explicitly throw java.lang.Exception 171
A method/constructor shouldnt explicitly throw java.lang.Exception 205
A method/constructor shouldnt explicitly throw java.lang.Exception 205

fr/paris/lutece/plugins/aot/modules/declarationimmat/service/SNDIServiceHome.java

Violation Ligne
A class which only has private constructors should be final 571
A method/constructor shouldnt explicitly throw java.lang.Exception 34
A method/constructor shouldnt explicitly throw java.lang.Exception 34
A method/constructor shouldnt explicitly throw java.lang.Exception 54
A method/constructor shouldnt explicitly throw java.lang.Exception 54
Singleton is not thread safe 6467

fr/paris/lutece/plugins/aot/modules/declarationimmat/utils/AOTStringUtils.java

Violation Ligne
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. 1964
Unnecessary use of fully qualified name 'javax.el.ExpressionFactory' due to existing import 'javax.el.ExpressionFactory' 25
The String literal "date" appears 5 times in this file; the first occurrence is on line 33 33
Avoid printStackTrace(); use a logger call instead. 43

fr/paris/lutece/plugins/aot/modules/declarationimmat/utils/AOTTypeConverter.java

Violation Ligne
When instantiating a SimpleDateFormat object, specify a Locale 19

fr/paris/lutece/plugins/aot/modules/declarationimmat/utils/CalculUtils.java

Violation Ligne
Possible God class (WMC=77, ATFD=117, TCC=0.022222222222222223) 1448
A class which only has private constructors should be final 29448
The class 'CalculUtils' has a Modified Cyclomatic Complexity of 5 (Highest = 11). 29448
The class 'CalculUtils' has a Standard Cyclomatic Complexity of 5 (Highest = 11). 29448
The class 'CalculUtils' has a Cyclomatic Complexity of 7 (Highest = 15). 29448
The field name indicates a constant but its modifiers do not 32
The field name indicates a constant but its modifiers do not 33
The field name indicates a constant but its modifiers do not 34
The field name indicates a constant but its modifiers do not 35
Rather than using a lot of String arguments, consider using a container object for those values. 53
The String literal "yyyy-MM-dd HH:mm:ss" appears 9 times in this file; the first occurrence is on line 57 57
The String literal "dd/MM/yyyy HH:mm:ss" appears 9 times in this file; the first occurrence is on line 57 57
The String literal "yyyy-MM-dd" appears 9 times in this file; the first occurrence is on line 57 57
The String literal "dd/MM/yyyy" appears 9 times in this file; the first occurrence is on line 57 57
Rather than using a lot of String arguments, consider using a container object for those values. 89
The String literal "Europe/Paris" appears 6 times in this file; the first occurrence is on line 95 95
The method 'nbHalfDaysBetweenTwoDate' has a Cyclomatic Complexity of 11. 127177
Rather than using a lot of String arguments, consider using a container object for those values. 127
Rather than using a lot of String arguments, consider using a container object for those values. 189
The method 'nbHalfBusinessDaysBetweenTwoDate' has a Cyclomatic Complexity of 14. 189238
The String literal "signet" appears 4 times in this file; the first occurrence is on line 252 252
The method 'obtainDate' has a Modified Cyclomatic Complexity of 11. 272330
The method obtainDate() has an NPath complexity of 640 272330
The method 'obtainDate' has a Cyclomatic Complexity of 15. 272330
The method 'obtainDate' has a Standard Cyclomatic Complexity of 11. 272330
Assigning an Object to null is a code smell. Consider refactoring. 311
Avoid using Literals in Conditional Statements 401

fr/paris/lutece/plugins/aot/modules/declarationimmat/utils/CheckedFunction.java

Violation Ligne
A method/constructor shouldnt explicitly throw java.lang.Exception 6
Avoid variables with short names like t 6
A method/constructor shouldnt explicitly throw java.lang.Exception 6

fr/paris/lutece/plugins/aot/modules/declarationimmat/utils/DateUtils.java

Violation Ligne
A class which only has private constructors should be final 14125
Avoid variables with short names like G 57
Avoid variables with short names like C 58
Avoid variables with short names like H 59
Avoid variables with short names like I 60
Avoid variables with short names like J 61
Avoid variables with short names like L 62
When instantiating a SimpleDateFormat object, specify a Locale 102

fr/paris/lutece/plugins/aot/modules/declarationimmat/utils/TimestampAdapter.java

Violation Ligne
A method/constructor shouldnt explicitly throw java.lang.Exception 12
A method/constructor shouldnt explicitly throw java.lang.Exception 12
A method/constructor shouldnt explicitly throw java.lang.Exception 21
A method/constructor shouldnt explicitly throw java.lang.Exception 21

fr/paris/lutece/plugins/aot/modules/declarationimmat/utils/TypeVehicleAdapter.java

Violation Ligne
A method/constructor shouldnt explicitly throw java.lang.Exception 11
A method/constructor shouldnt explicitly throw java.lang.Exception 11
A method/constructor shouldnt explicitly throw java.lang.Exception 21
A method/constructor shouldnt explicitly throw java.lang.Exception 21

fr/paris/lutece/plugins/aot/modules/declarationimmat/utils/TypeVehicleUtils.java

Violation Ligne
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. 1334