PMD Results
The following document contains the results of PMD 6.4.0.
Files
org/springframework/boot/actuate/endpoint/ShowAllEndpoint.java
Violation |
Priority |
Line |
The method 'getEndpoints()' has a NCSS line count of 12. |
3 |
29–43 |
Do not add empty strings |
3 |
37 |
org/springframework/boot/actuate/endpoint/ShowAllEndpointAutoConfiguration.java
Violation |
Priority |
Line |
Parameter 'applicationContext' is not assigned and could be declared final |
3 |
16 |
org/springframework/cloud/client/serviceregistry/AutoMultiServiceRegistrationAutoConfiguration.java
Violation |
Priority |
Line |
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() |
3 |
34 |
org/springframework/cloud/client/serviceregistry/MultiServiceRegistryAutoConfiguration.java
Violation |
Priority |
Line |
Local variable 'endpoint' could be declared final |
3 |
86 |
org/springframework/cloud/client/serviceregistry/endpoint/MultiServiceRegistryEndpoint.java
Violation |
Priority |
Line |
Avoid unused private fields such as 'registrations'. |
3 |
53 |
Perhaps 'registrations' could be replaced by a local variable. |
3 |
53 |
Parameter 'serviceRegistries' is not assigned and could be declared final |
3 |
56 |
To avoid mistakes add a comment at the beginning of the discoveryServiceName method if you want a default access modifier |
3 |
70–80 |
A method should have only one exit point, and that should be the last statement in the method |
3 |
76 |
When doing a String.toLowerCase()/toUpperCase() call, use a Locale |
3 |
76 |
Parameter 'registrations' is not assigned and could be declared final |
3 |
82 |
Parameter 'status' is not assigned and could be declared final |
3 |
98 |
A method should have only one exit point, and that should be the last statement in the method |
3 |
111 |
A method should have only one exit point, and that should be the last statement in the method |
3 |
131 |