PMD Results
The following document contains the results of PMD 6.29.0.
Violations By Priority
Priority 3
com/zone/weixin4j/dispatcher/WeixinMessageDispatcher.java
com/zone/weixin4j/dispatcher/WeixinMessageMatcher.java
Rule |
Violation |
Line |
UnnecessaryModifier |
Unnecessary modifier 'public' on method 'match': the method is declared in an interface type |
22 |
UnnecessaryModifier |
Unnecessary modifier 'public' on method 'regist': the method is declared in an interface type |
32–33 |
com/zone/weixin4j/exception/HttpResponseException.java
com/zone/weixin4j/handler/WeixinMessageHandler.java
Rule |
Violation |
Line |
UnnecessaryModifier |
Unnecessary modifier 'public' on method 'canHandle': the method is declared in an interface type |
33–34 |
UnnecessaryModifier |
Unnecessary modifier 'public' on method 'doHandle': the method is declared in an interface type |
47–48 |
UnnecessaryModifier |
Unnecessary modifier 'public' on method 'weight': the method is declared in an interface type |
55 |
com/zone/weixin4j/response/WeixinResponse.java
Rule |
Violation |
Line |
UnnecessaryModifier |
Unnecessary modifier 'public' on method 'getMsgType': the method is declared in an interface type |
31 |
UnnecessaryModifier |
Unnecessary modifier 'public' on method 'toContent': the method is declared in an interface type |
38 |
com/zone/weixin4j/service/WeiXin4jContextAware.java
Rule |
Violation |
Line |
UnnecessaryModifier |
Unnecessary modifier 'public' on method 'getWeixinMessageMatcher': the method is declared in an interface type |
28 |
UnnecessaryModifier |
Unnecessary modifier 'public' on method 'setWeixinMessageMatcher': the method is declared in an interface type |
30 |
com/zone/weixin4j/util/ClassUtil.java
Priority 4
com/zone/weixin4j/base64/Base64.java
com/zone/weixin4j/base64/BaseNCodec.java
com/zone/weixin4j/dispatcher/WeixinMessageKey.java
com/zone/weixin4j/service/WxService.java
Rule |
Violation |
Line |
UnusedImports |
Avoid unused imports such as 'com.zone.weixin4j.request.WeixinRequest' |
6 |
com/zone/weixin4j/service/context/WeiXin4jContextAwareImpl.java
Rule |
Violation |
Line |
UnusedImports |
Avoid unused imports such as 'java.util.concurrent.ConcurrentHashMap' |
17 |
com/zone/weixin4j/service/impl/WxServiceImpl.java
com/zone/weixin4j/util/ClassUtil.java
com/zone/weixin4j/util/ServerToolkits.java
Rule |
Violation |
Line |
UnusedImports |
Avoid unused imports such as 'com.zone.weixin4j.socket.WeixinMessageTransfer' |
3 |
Files
com/zone/weixin4j/base64/Base64.java
com/zone/weixin4j/base64/BaseNCodec.java
com/zone/weixin4j/dispatcher/WeixinMessageDispatcher.java
com/zone/weixin4j/dispatcher/WeixinMessageKey.java
com/zone/weixin4j/dispatcher/WeixinMessageMatcher.java
Rule |
Violation |
Priority |
Line |
UnnecessaryModifier |
Unnecessary modifier 'public' on method 'match': the method is declared in an interface type |
3 |
22 |
UnnecessaryModifier |
Unnecessary modifier 'public' on method 'regist': the method is declared in an interface type |
3 |
32–33 |
com/zone/weixin4j/exception/HttpResponseException.java
com/zone/weixin4j/handler/WeixinMessageHandler.java
Rule |
Violation |
Priority |
Line |
UnnecessaryModifier |
Unnecessary modifier 'public' on method 'canHandle': the method is declared in an interface type |
3 |
33–34 |
UnnecessaryModifier |
Unnecessary modifier 'public' on method 'doHandle': the method is declared in an interface type |
3 |
47–48 |
UnnecessaryModifier |
Unnecessary modifier 'public' on method 'weight': the method is declared in an interface type |
3 |
55 |
com/zone/weixin4j/response/WeixinResponse.java
Rule |
Violation |
Priority |
Line |
UnnecessaryModifier |
Unnecessary modifier 'public' on method 'getMsgType': the method is declared in an interface type |
3 |
31 |
UnnecessaryModifier |
Unnecessary modifier 'public' on method 'toContent': the method is declared in an interface type |
3 |
38 |
com/zone/weixin4j/service/WeiXin4jContextAware.java
Rule |
Violation |
Priority |
Line |
UnnecessaryModifier |
Unnecessary modifier 'public' on method 'getWeixinMessageMatcher': the method is declared in an interface type |
3 |
28 |
UnnecessaryModifier |
Unnecessary modifier 'public' on method 'setWeixinMessageMatcher': the method is declared in an interface type |
3 |
30 |
com/zone/weixin4j/service/WxService.java
Rule |
Violation |
Priority |
Line |
UnusedImports |
Avoid unused imports such as 'com.zone.weixin4j.request.WeixinRequest' |
4 |
6 |
com/zone/weixin4j/service/context/WeiXin4jContextAwareImpl.java
Rule |
Violation |
Priority |
Line |
UnusedImports |
Avoid unused imports such as 'java.util.concurrent.ConcurrentHashMap' |
4 |
17 |
com/zone/weixin4j/service/impl/WxServiceImpl.java
com/zone/weixin4j/util/ClassUtil.java
com/zone/weixin4j/util/ServerToolkits.java
Rule |
Violation |
Priority |
Line |
UnusedImports |
Avoid unused imports such as 'com.zone.weixin4j.socket.WeixinMessageTransfer' |
4 |
3 |