PMD Results
The following document contains the results of PMD 6.4.0.
 
Files
spring-cloud-eureka-dashboard-labeler - cn/home1/cloud/netflix/eureka/server/EurekaDashboardLabeler.java
| Violation | Priority | Line | 
| A method should have only one exit point, and that should be the last statement in the method | 3 | 40 | 
 
spring-cloud-eureka-sidecar - cn/home1/cloud/netflix/eureka/EurekaSidecarApplication.java
| Violation | Priority | Line | 
| Avoid unused imports such as 'org.springframework.security.core.userdetails.UserDetails' | 4 | 12 | 
 
spring-cloud-multi-registration - org/springframework/boot/actuate/endpoint/ListEndPointsAutoConfiguration.java
| Violation | Priority | Line | 
| Parameter 'endpoints' is not assigned and could be declared final | 3 | 12 | 
 
spring-cloud-multi-registration - 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 | 
 
spring-cloud-multi-registration - org/springframework/cloud/client/serviceregistry/MultiServiceRegistryAutoConfiguration.java
| Violation | Priority | Line | 
| Local variable 'endpoint' could be declared final | 3 | 86 | 
 
spring-cloud-multi-registration - org/springframework/cloud/client/serviceregistry/endpoint/MultiServiceRegistryEndpoint.java
| Violation | Priority | Line | 
| Avoid unused private fields such as 'registrations'. | 3 | 55 | 
| Perhaps 'registrations' could be replaced by a local variable. | 3 | 55 | 
| Parameter 'serviceRegistries' is not assigned and could be declared final | 3 | 58 | 
| To avoid mistakes add a comment at the beginning of the discoveryServiceName method if you want a default access modifier | 3 | 72–82 | 
| A method should have only one exit point, and that should be the last statement in the method | 3 | 78 | 
| When doing a String.toLowerCase()/toUpperCase() call, use a Locale | 3 | 78 | 
| Parameter 'registrations' is not assigned and could be declared final | 3 | 84 | 
| Parameter 'status' is not assigned and could be declared final | 3 | 102 | 
| A method should have only one exit point, and that should be the last statement in the method | 3 | 106 | 
| A method should have only one exit point, and that should be the last statement in the method | 3 | 122 |