PMD Results

The following document contains the results of PMD 5.6.1.

Files

Date.java

Violation Line
Avoid short class names like Date 240
All classes and interfaces must belong to a named package 240
Use explicit scoping instead of the default package private level 3
Use explicit scoping instead of the default package private level 4
Use explicit scoping instead of the default package private level 5
Avoid unnecessary constructors - the compiler will generate these for you 79
Parameter 'day' is not assigned and could be declared final 15
Parameter 'month' is not assigned and could be declared final 23
Parameter 'year' is not assigned and could be declared final 31

DateController.java

Violation Line
All classes and interfaces must belong to a named package 228
Avoid unnecessary constructors - the compiler will generate these for you 46
Avoid variables with short names like t 8
Parameter 't' is not assigned and could be declared final 8
Avoid unnecessary if..then..else statements when returning booleans 1519
A method should have only one exit point, and that should be the last statement in the method 16
A method should have only one exit point, and that should be the last statement in the method 18
A method should have only one exit point, and that should be the last statement in the method 21

NumerosValidosException.java

Violation Line
All classes and interfaces must belong to a named package 26
Parameter 'errorMessage' is not assigned and could be declared final 3

Principal.java

Violation Line
All classes and interfaces must belong to a named package 437
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. 437
The field name indicates a constant but its modifiers do not 5
Variables should start with a lowercase character, 'TECLADO' starts with uppercase character. 5
Use explicit scoping instead of the default package private level 5
Parameter 'args' is not assigned and could be declared final 8
Local variable 'list' could be declared final 9
Local variable 'entrada' could be declared final 10
Potential violation of Law of Demeter (method chain calls) 13
Local variable 'd' could be declared final 16
Avoid variables with short names like d 16
Found 'DD'-anomaly for variable 'value' (lines '27'-'29'). 2729