PMD Results

The following document contains the results of PMD 6.29.0.

Violations By Priority

Priority 3

com/foxinmy/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/foxinmy/weixin4j/handler/WeixinMessageHandler.java

Rule Violation Line
UnnecessaryModifier Unnecessary modifier 'public' on method 'canHandle': the method is declared in an interface type 32
UnnecessaryModifier Unnecessary modifier 'public' on method 'doHandle': the method is declared in an interface type 43
UnnecessaryModifier Unnecessary modifier 'public' on method 'weight': the method is declared in an interface type 50

com/foxinmy/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/foxinmy/weixin4j/util/ClassUtil.java

Rule Violation Line
EmptyStatementNotInLoop An empty statement (semicolon) not part of a loop 109
EmptyStatementNotInLoop An empty statement (semicolon) not part of a loop 143
EmptyStatementNotInLoop An empty statement (semicolon) not part of a loop 151
EmptyStatementNotInLoop An empty statement (semicolon) not part of a loop 189
EmptyCatchBlock Avoid empty catch blocks 217219
EmptyCatchBlock Avoid empty catch blocks 228231

com/foxinmy/weixin4j/util/HttpUtil.java

Rule Violation Line
TooManyStaticImports Too many static imports may lead to messy code 173

Priority 4

com/foxinmy/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/foxinmy/weixin4j/base64/BaseNCodec.java

Rule Violation Line
UselessParentheses Useless parentheses. 285
UselessParentheses Useless parentheses. 286

com/foxinmy/weixin4j/dispatcher/WeixinMessageKey.java

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

com/foxinmy/weixin4j/socket/WeixinRequestHandler.java

Rule Violation Line
UselessParentheses Useless parentheses. 5859

com/foxinmy/weixin4j/util/ClassUtil.java

Rule Violation Line
UselessParentheses Useless parentheses. 206

Files

com/foxinmy/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/foxinmy/weixin4j/base64/BaseNCodec.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 285
UselessParentheses Useless parentheses. 4 286

com/foxinmy/weixin4j/dispatcher/WeixinMessageKey.java

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

com/foxinmy/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/foxinmy/weixin4j/handler/WeixinMessageHandler.java

Rule Violation Priority Line
UnnecessaryModifier Unnecessary modifier 'public' on method 'canHandle': the method is declared in an interface type 3 32
UnnecessaryModifier Unnecessary modifier 'public' on method 'doHandle': the method is declared in an interface type 3 43
UnnecessaryModifier Unnecessary modifier 'public' on method 'weight': the method is declared in an interface type 3 50

com/foxinmy/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/foxinmy/weixin4j/socket/WeixinRequestHandler.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 5859

com/foxinmy/weixin4j/util/ClassUtil.java

Rule Violation Priority Line
EmptyStatementNotInLoop An empty statement (semicolon) not part of a loop 3 109
EmptyStatementNotInLoop An empty statement (semicolon) not part of a loop 3 143
EmptyStatementNotInLoop An empty statement (semicolon) not part of a loop 3 151
EmptyStatementNotInLoop An empty statement (semicolon) not part of a loop 3 189
UselessParentheses Useless parentheses. 4 206
EmptyCatchBlock Avoid empty catch blocks 3 217219
EmptyCatchBlock Avoid empty catch blocks 3 228231

com/foxinmy/weixin4j/util/HttpUtil.java

Rule Violation Priority Line
TooManyStaticImports Too many static imports may lead to messy code 3 173