PMD Results

The following document contains the results of PMD 6.29.0.

Violations By Priority

Priority 3

com/zone/weixin4j/dispatcher/WeixinMessageDispatcher.java

Rule Violation Line
CollapsibleIfStatements These nested if statements could be combined 98101

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 3233

com/zone/weixin4j/exception/HttpResponseException.java

Rule Violation Line
UnusedFormalParameter Avoid unused constructor parameters such as 'bytes'. 331

com/zone/weixin4j/handler/WeixinMessageHandler.java

Rule Violation Line
UnnecessaryModifier Unnecessary modifier 'public' on method 'canHandle': the method is declared in an interface type 3334
UnnecessaryModifier Unnecessary modifier 'public' on method 'doHandle': the method is declared in an interface type 4748
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

Rule Violation Line
EmptyStatementNotInLoop An empty statement (semicolon) not part of a loop 89
EmptyStatementNotInLoop An empty statement (semicolon) not part of a loop 124
EmptyStatementNotInLoop An empty statement (semicolon) not part of a loop 161
EmptyCatchBlock Avoid empty catch blocks 189191
EmptyCatchBlock Avoid empty catch blocks 200203

Priority 4

com/zone/weixin4j/base64/Base64.java

Rule Violation Line
UselessParentheses Useless parentheses. 588
UselessParentheses Useless parentheses. 855
UselessParentheses Useless parentheses. 855
UselessParentheses Useless parentheses. 856
UselessParentheses Useless parentheses. 856
UselessParentheses Useless parentheses. 856
UselessParentheses Useless parentheses. 856
UselessParentheses Useless parentheses. 864

com/zone/weixin4j/base64/BaseNCodec.java

Rule Violation Line
UselessParentheses Useless parentheses. 282
UselessParentheses Useless parentheses. 283

com/zone/weixin4j/dispatcher/WeixinMessageKey.java

Rule Violation Line
UselessParentheses Useless parentheses. 51
UselessParentheses Useless parentheses. 54

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

Rule Violation Line
UselessParentheses Useless parentheses. 70

com/zone/weixin4j/util/ClassUtil.java

Rule Violation Line
UselessParentheses Useless parentheses. 178

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

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 588
UselessParentheses Useless parentheses. 4 855
UselessParentheses Useless parentheses. 4 855
UselessParentheses Useless parentheses. 4 856
UselessParentheses Useless parentheses. 4 856
UselessParentheses Useless parentheses. 4 856
UselessParentheses Useless parentheses. 4 856
UselessParentheses Useless parentheses. 4 864

com/zone/weixin4j/base64/BaseNCodec.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 282
UselessParentheses Useless parentheses. 4 283

com/zone/weixin4j/dispatcher/WeixinMessageDispatcher.java

Rule Violation Priority Line
CollapsibleIfStatements These nested if statements could be combined 3 98101

com/zone/weixin4j/dispatcher/WeixinMessageKey.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 51
UselessParentheses Useless parentheses. 4 54

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 3233

com/zone/weixin4j/exception/HttpResponseException.java

Rule Violation Priority Line
UnusedFormalParameter Avoid unused constructor parameters such as 'bytes'. 3 331

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 3334
UnnecessaryModifier Unnecessary modifier 'public' on method 'doHandle': the method is declared in an interface type 3 4748
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

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 70

com/zone/weixin4j/util/ClassUtil.java

Rule Violation Priority Line
EmptyStatementNotInLoop An empty statement (semicolon) not part of a loop 3 89
EmptyStatementNotInLoop An empty statement (semicolon) not part of a loop 3 124
EmptyStatementNotInLoop An empty statement (semicolon) not part of a loop 3 161
UselessParentheses Useless parentheses. 4 178
EmptyCatchBlock Avoid empty catch blocks 3 189191
EmptyCatchBlock Avoid empty catch blocks 3 200203

com/zone/weixin4j/util/ServerToolkits.java

Rule Violation Priority Line
UnusedImports Avoid unused imports such as 'com.zone.weixin4j.socket.WeixinMessageTransfer' 4 3