PMD Results
The following document contains the results of PMD 5.3.5.
Files
Apollo Biz - com/ctrip/apollo/biz/entity/BaseEntity.java
| Violation |
Line |
| Avoid unused private methods such as 'prePersist()'. |
88 |
| Avoid unused private methods such as 'preUpdate()'. |
93 |
| Avoid unused private methods such as 'preRemove()'. |
98 |
Apollo Client - com/ctrip/apollo/Config.java
| Violation |
Line |
| Avoid modifiers which are implied by the context |
14 |
| Avoid modifiers which are implied by the context |
20 |
Apollo Client - com/ctrip/apollo/ConfigChangeListener.java
| Violation |
Line |
| Avoid modifiers which are implied by the context |
13 |
Apollo Client - com/ctrip/apollo/internals/ConfigManager.java
| Violation |
Line |
| Avoid modifiers which are implied by the context |
14 |
Apollo Client - com/ctrip/apollo/internals/ConfigRepository.java
| Violation |
Line |
| Avoid modifiers which are implied by the context |
13 |
| Avoid modifiers which are implied by the context |
19 |
| Avoid modifiers which are implied by the context |
25 |
| Avoid modifiers which are implied by the context |
31 |
Apollo Client - com/ctrip/apollo/internals/DefaultConfig.java
| Violation |
Line |
| Avoid empty catch blocks |
169–171 |
Apollo Client - com/ctrip/apollo/internals/LocalFileConfigRepository.java
| Violation |
Line |
| Avoid empty catch blocks |
147–149 |
| Avoid empty catch blocks |
179–181 |
Apollo Client - com/ctrip/apollo/internals/RepositoryChangeListener.java
| Violation |
Line |
| Avoid modifiers which are implied by the context |
14 |
Apollo Client - com/ctrip/apollo/spi/ConfigFactory.java
| Violation |
Line |
| Avoid modifiers which are implied by the context |
15 |
Apollo Client - com/ctrip/apollo/spi/ConfigFactoryManager.java
| Violation |
Line |
| Avoid modifiers which are implied by the context |
13 |
Apollo Client - com/ctrip/apollo/spi/ConfigRegistry.java
| Violation |
Line |
| Avoid modifiers which are implied by the context |
15 |
| Avoid modifiers which are implied by the context |
23 |
Apollo Client - com/ctrip/apollo/spi/DefaultConfigFactory.java
| Violation |
Line |
| These nested if statements could be combined |
30–32 |
Apollo Client - com/ctrip/apollo/spi/DefaultConfigFactoryManager.java
| Violation |
Line |
| Avoid empty catch blocks |
41–43 |
Apollo Client - com/ctrip/apollo/util/http/HttpUtil.java
| Violation |
Line |
| Avoid empty catch blocks |
80–82 |
Apollo Common - com/ctrip/apollo/common/controller/GlobalDefaultExceptionHandler.java
| Violation |
Line |
| Avoid unused method parameters such as 'request'. |
40 |
Apollo Common - com/ctrip/apollo/common/utils/BeanUtils.java
| Violation |
Line |
| Avoid empty catch blocks |
189–191 |
| Avoid empty catch blocks |
205–207 |
Apollo Core - com/ctrip/apollo/core/utils/ApolloThreadFactory.java
| Violation |
Line |
| Avoid using java.lang.ThreadGroup; it is not thread safe |
22 |
| Avoid modifiers which are implied by the context |
64–66 |
Apollo Core - com/ctrip/apollo/core/utils/StringUtils.java
| Violation |
Line |
| Avoid modifiers which are implied by the context |
327–329 |
Apollo Portal - com/ctrip/apollo/portal/PortalSettings.java
| Violation |
Line |
| Avoid unused private methods such as 'postConstruct()'. |
22 |
Apollo Portal - com/ctrip/apollo/portal/service/txtresolver/PropertyResolver.java
| Violation |
Line |
| Useless parentheses. |
183 |