PMD Results

The following document contains the results of PMD 6.29.0.

Violations By Priority

Priority 2

com/foxinmy/weixin4j/util/ObjectId.java

Rule Violation Line
AvoidBranchingStatementAsLastInLoop Avoid using a branching statement as the last in a loop. 107

Priority 3

com/foxinmy/weixin4j/api/CashApi.java

Rule Violation Line
AvoidDecimalLiteralsInBigDecimalConstructor Avoid creating BigDecimal with a decimal (float/double) literal. Use a String literal 281

com/foxinmy/weixin4j/api/PayApi.java

Rule Violation Line
EmptyStatementNotInLoop An empty statement (semicolon) not part of a loop 600
EmptyStatementNotInLoop An empty statement (semicolon) not part of a loop 685
EmptyStatementNotInLoop An empty statement (semicolon) not part of a loop 711

com/foxinmy/weixin4j/cache/CacheCreator.java

Rule Violation Line
UnnecessaryModifier Unnecessary modifier 'public' on method 'key': the method is declared in an interface type 20
UnnecessaryModifier Unnecessary modifier 'public' on method 'create': the method is declared in an interface type 28

com/foxinmy/weixin4j/cache/Cacheable.java

Rule Violation Line
UnnecessaryModifier Unnecessary modifier 'public' on method 'getExpires': the method is declared in an interface type 20
UnnecessaryModifier Unnecessary modifier 'public' on method 'getCreateTime': the method is declared in an interface type 27

com/foxinmy/weixin4j/cache/FileCacheStorager.java

Rule Violation Line
EmptyStatementNotInLoop An empty statement (semicolon) not part of a loop 87

com/foxinmy/weixin4j/cache/MemcacheCacheStorager.java

Rule Violation Line
AvoidUsingHardCodedIP Do not hard code the IP address 86

com/foxinmy/weixin4j/cache/MemoryCacheStorager.java

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

com/foxinmy/weixin4j/cache/RedisCacheStorager.java

Rule Violation Line
AvoidUsingHardCodedIP Do not hard code the IP address 25

com/foxinmy/weixin4j/http/HttpHeaders.java

Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 10911093

com/foxinmy/weixin4j/http/HttpStatus.java

Rule Violation Line
UnnecessaryModifier Unnecessary modifier 'static' on enum 'Series': nested enums are implicitly static 204236
UnnecessaryModifier Unnecessary modifier 'private' on constructor 'Series(int)': enum constructors are implicitly private 211213

com/foxinmy/weixin4j/http/message/MessageConverter.java

Rule Violation Line
UnnecessaryModifier Unnecessary modifier 'public' on method 'supportedMimeTypes': the method is declared in an interface type 25
UnnecessaryModifier Unnecessary modifier 'public' on method 'canConvert': the method is declared in an interface type 36
UnnecessaryModifier Unnecessary modifier 'public' on method 'convert': the method is declared in an interface type 4849

com/foxinmy/weixin4j/http/support/apache4/HttpComponent4_1Response.java

Rule Violation Line
EmptyStatementNotInLoop An empty statement (semicolon) not part of a loop 76

com/foxinmy/weixin4j/http/support/apache4/HttpComponent4_2Response.java

Rule Violation Line
EmptyStatementNotInLoop An empty statement (semicolon) not part of a loop 80

com/foxinmy/weixin4j/http/weixin/WeixinRequestExecutor.java

Rule Violation Line
CollapsibleIfStatements These nested if statements could be combined 224228
EmptyStatementNotInLoop An empty statement (semicolon) not part of a loop 231
EmptyCatchBlock Avoid empty catch blocks 266267

com/foxinmy/weixin4j/model/card/CardInfo.java

Rule Violation Line
UnusedPrivateField Avoid unused private fields such as 'price'. 74
UnusedPrivateField Avoid unused private fields such as 'defaultGiftingMsg'. 79

com/foxinmy/weixin4j/model/card/GiftCard.java

Rule Violation Line
UnusedPrivateField Avoid unused private fields such as 'subCardType'. 19
UnusedPrivateField Avoid unused private fields such as 'backgroundPicUrl'. 24
UnusedPrivateField Avoid unused private fields such as 'supplyBonus'. 29
UnusedPrivateField Avoid unused private fields such as 'supplyBalance'. 34
UnusedPrivateField Avoid unused private fields such as 'customField1'. 39
UnusedPrivateField Avoid unused private fields such as 'customField2'. 44
UnusedPrivateField Avoid unused private fields such as 'customField3'. 49
UnusedPrivateField Avoid unused private fields such as 'autoActivate'. 54
UnusedPrivateField Avoid unused private fields such as 'initBalance'. 59

com/foxinmy/weixin4j/model/card/GiftCardOrder.java

Rule Violation Line
UnusedPrivateField Avoid unused private fields such as 'orderId'. 9
UnusedPrivateField Avoid unused private fields such as 'pageId'. 10

com/foxinmy/weixin4j/model/card/VoucherCard.java

Rule Violation Line
EmptyStatementNotInLoop An empty statement (semicolon) not part of a loop 99

com/foxinmy/weixin4j/model/paging/Pagedata.java

Rule Violation Line
SimplifiedTernary Ternary operators that can be simplified with || or && 47

com/foxinmy/weixin4j/model/paging/Sort.java

Rule Violation Line
UnnecessaryModifier Unnecessary modifier 'static' on enum 'Direction': nested enums are implicitly static 4749

com/foxinmy/weixin4j/payment/mch/MchPayRequest.java

Rule Violation Line
UnnecessaryModifier Unnecessary modifier 'public' on method 'getPrePayId': the method is declared in an interface type 28
UnnecessaryModifier Unnecessary modifier 'public' on method 'getPaymentAccount': the method is declared in an interface type 35
UnnecessaryModifier Unnecessary modifier 'public' on method 'getPaymentType': the method is declared in an interface type 42
UnnecessaryModifier Unnecessary modifier 'public' on method 'toRequestString': the method is declared in an interface type 49
UnnecessaryModifier Unnecessary modifier 'public' on method 'toRequestObject': the method is declared in an interface type 56

com/foxinmy/weixin4j/sign/WeixinSignature.java

Rule Violation Line
UnnecessaryModifier Unnecessary modifier 'public' on method 'encoder': the method is declared in an interface type 22
UnnecessaryModifier Unnecessary modifier 'public' on method 'lowerCase': the method is declared in an interface type 29
UnnecessaryModifier Unnecessary modifier 'public' on method 'getSignType': the method is declared in an interface type 36
UnnecessaryModifier Unnecessary modifier 'public' on method 'sign': the method is declared in an interface type 44

com/foxinmy/weixin4j/tuple/Tuple.java

Rule Violation Line
UnnecessaryModifier Unnecessary modifier 'public' on method 'getMessageType': the method is declared in an interface type 24

com/foxinmy/weixin4j/util/DigestUtil.java

Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 8182

com/foxinmy/weixin4j/util/FileUtil.java

Rule Violation Line
EmptyStatementNotInLoop An empty statement (semicolon) not part of a loop 121
EmptyStatementNotInLoop An empty statement (semicolon) not part of a loop 127

com/foxinmy/weixin4j/util/MapUtil.java

Rule Violation Line
EmptyStatementNotInLoop An empty statement (semicolon) not part of a loop 105

com/foxinmy/weixin4j/util/ObjectId.java

Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 308309

com/foxinmy/weixin4j/util/ReflectionUtil.java

Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 172174
EmptyCatchBlock Avoid empty catch blocks 196198

com/foxinmy/weixin4j/util/Weixin4jConfigUtil.java

Rule Violation Line
EmptyStatementNotInLoop An empty statement (semicolon) not part of a loop 30
EmptyStatementNotInLoop An empty statement (semicolon) not part of a loop 69
EmptyStatementNotInLoop An empty statement (semicolon) not part of a loop 71

com/foxinmy/weixin4j/util/WeixinErrorUtil.java

Rule Violation Line
EmptyStatementNotInLoop An empty statement (semicolon) not part of a loop 37

com/foxinmy/weixin4j/xml/ListsuffixResultDeserializer.java

Rule Violation Line
EmptyStatementNotInLoop An empty statement (semicolon) not part of a loop 56
EmptyStatementNotInLoop An empty statement (semicolon) not part of a loop 93
EmptyStatementNotInLoop An empty statement (semicolon) not part of a loop 169
EmptyStatementNotInLoop An empty statement (semicolon) not part of a loop 206

com/foxinmy/weixin4j/xml/ListsuffixResultSerializer.java

Rule Violation Line
EmptyStatementNotInLoop An empty statement (semicolon) not part of a loop 58
EmptyStatementNotInLoop An empty statement (semicolon) not part of a loop 131
EmptyStatementNotInLoop An empty statement (semicolon) not part of a loop 137

com/foxinmy/weixin4j/xml/XmlStream.java

Rule Violation Line
EmptyStatementNotInLoop An empty statement (semicolon) not part of a loop 88
EmptyStatementNotInLoop An empty statement (semicolon) not part of a loop 141
EmptyStatementNotInLoop An empty statement (semicolon) not part of a loop 192
EmptyStatementNotInLoop An empty statement (semicolon) not part of a loop 229
EmptyStatementNotInLoop An empty statement (semicolon) not part of a loop 324

Priority 4

com/foxinmy/weixin4j/http/AbstractHttpClient.java

Rule Violation Line
UselessParentheses Useless parentheses. 111112

com/foxinmy/weixin4j/http/ContentType.java

Rule Violation Line
UselessParentheses Useless parentheses. 144

com/foxinmy/weixin4j/http/HeaderValueFormatter.java

Rule Violation Line
UselessParentheses Useless parentheses. 112
UselessParentheses Useless parentheses. 112
UselessParentheses Useless parentheses. 206

com/foxinmy/weixin4j/http/HttpHeaders.java

Rule Violation Line
UselessParentheses Useless parentheses. 646
UselessParentheses Useless parentheses. 680
UselessParentheses Useless parentheses. 823
UselessParentheses Useless parentheses. 1014
UselessParentheses Useless parentheses. 1121

com/foxinmy/weixin4j/http/message/JsonMessageConverter.java

Rule Violation Line
UselessParentheses Useless parentheses. 4344

com/foxinmy/weixin4j/http/message/XmlMessageConverter.java

Rule Violation Line
UselessParentheses Useless parentheses. 37

com/foxinmy/weixin4j/http/support/apache3/HttpComponent3.java

Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'com.foxinmy.weixin4j.http.HttpHeaders' due to existing import 'com.foxinmy.weixin4j.http.HttpHeaders' 131

com/foxinmy/weixin4j/http/support/apache4/HttpComponent4_1Factory.java

Rule Violation Line
UnusedImports Avoid unused imports such as 'javax.net.ssl.SSLContext' 5
UnusedImports Avoid unused imports such as 'org.apache.http.conn.ssl.X509HostnameVerifier' 12
UnusedImports Avoid unused imports such as 'com.foxinmy.weixin4j.http.HttpClientException' 19

com/foxinmy/weixin4j/http/support/okhttp/OkHttpClient2.java

Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'com.foxinmy.weixin4j.http.HttpHeaders' due to existing import 'com.foxinmy.weixin4j.http.HttpHeaders' 94

com/foxinmy/weixin4j/http/support/okhttp/OkHttpClient3.java

Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'com.foxinmy.weixin4j.http.HttpHeaders' due to existing import 'com.foxinmy.weixin4j.http.HttpHeaders' 90
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'okhttp3.RequestBody' due to existing import 'okhttp3.RequestBody' 121

com/foxinmy/weixin4j/http/weixin/WeixinRequestExecutor.java

Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'java.security.SecureRandom' due to existing import 'java.security.*' 260
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'java.security.SecureRandom' due to existing import 'java.security.*' 311

com/foxinmy/weixin4j/model/card/MemberUserInfo.java

Rule Violation Line
UnusedImports Avoid unused imports such as 'com.alibaba.fastjson.annotation.JSONType' 4
UnusedImports Avoid unused imports such as 'com.foxinmy.weixin4j.type.Gender' 5
UnusedImports Avoid unused imports such as 'com.foxinmy.weixin4j.xml.ListsuffixResult' 8
UnusedImports Avoid unused imports such as 'java.util.Map' 11

com/foxinmy/weixin4j/util/ByteArrayBuffer.java

Rule Violation Line
UselessParentheses Useless parentheses. 77
UselessParentheses Useless parentheses. 77
UselessParentheses Useless parentheses. 77
UselessParentheses Useless parentheses. 78
UselessParentheses Useless parentheses. 78
UselessParentheses Useless parentheses. 125
UselessParentheses Useless parentheses. 125
UselessParentheses Useless parentheses. 125
UselessParentheses Useless parentheses. 126
UselessParentheses Useless parentheses. 126

com/foxinmy/weixin4j/util/CharArrayBuffer.java

Rule Violation Line
UselessParentheses Useless parentheses. 81
UselessParentheses Useless parentheses. 81
UselessParentheses Useless parentheses. 81
UselessParentheses Useless parentheses. 82
UselessParentheses Useless parentheses. 82
UselessParentheses Useless parentheses. 180
UselessParentheses Useless parentheses. 180
UselessParentheses Useless parentheses. 180
UselessParentheses Useless parentheses. 181
UselessParentheses Useless parentheses. 181

com/foxinmy/weixin4j/util/LinkedCaseInsensitiveMap.java

Rule Violation Line
UselessParentheses Useless parentheses. 65
UselessParentheses Useless parentheses. 95
UselessParentheses Useless parentheses. 119120

com/foxinmy/weixin4j/util/ObjectId.java

Rule Violation Line
UselessParentheses Useless parentheses. 142
UselessParentheses Useless parentheses. 143
UselessParentheses Useless parentheses. 191
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'java.util.Random' due to existing import 'java.util.Random' 272
UselessParentheses Useless parentheses. 272
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'java.util.Random' due to existing import 'java.util.Random' 304

Files

com/foxinmy/weixin4j/api/CashApi.java

Rule Violation Priority Line
AvoidDecimalLiteralsInBigDecimalConstructor Avoid creating BigDecimal with a decimal (float/double) literal. Use a String literal 3 281

com/foxinmy/weixin4j/api/PayApi.java

Rule Violation Priority Line
EmptyStatementNotInLoop An empty statement (semicolon) not part of a loop 3 600
EmptyStatementNotInLoop An empty statement (semicolon) not part of a loop 3 685
EmptyStatementNotInLoop An empty statement (semicolon) not part of a loop 3 711

com/foxinmy/weixin4j/cache/CacheCreator.java

Rule Violation Priority Line
UnnecessaryModifier Unnecessary modifier 'public' on method 'key': the method is declared in an interface type 3 20
UnnecessaryModifier Unnecessary modifier 'public' on method 'create': the method is declared in an interface type 3 28

com/foxinmy/weixin4j/cache/Cacheable.java

Rule Violation Priority Line
UnnecessaryModifier Unnecessary modifier 'public' on method 'getExpires': the method is declared in an interface type 3 20
UnnecessaryModifier Unnecessary modifier 'public' on method 'getCreateTime': the method is declared in an interface type 3 27

com/foxinmy/weixin4j/cache/FileCacheStorager.java

Rule Violation Priority Line
EmptyStatementNotInLoop An empty statement (semicolon) not part of a loop 3 87

com/foxinmy/weixin4j/cache/MemcacheCacheStorager.java

Rule Violation Priority Line
AvoidUsingHardCodedIP Do not hard code the IP address 3 86

com/foxinmy/weixin4j/cache/MemoryCacheStorager.java

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

com/foxinmy/weixin4j/cache/RedisCacheStorager.java

Rule Violation Priority Line
AvoidUsingHardCodedIP Do not hard code the IP address 3 25

com/foxinmy/weixin4j/http/AbstractHttpClient.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 111112

com/foxinmy/weixin4j/http/ContentType.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 144

com/foxinmy/weixin4j/http/HeaderValueFormatter.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 112
UselessParentheses Useless parentheses. 4 112
UselessParentheses Useless parentheses. 4 206

com/foxinmy/weixin4j/http/HttpHeaders.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 646
UselessParentheses Useless parentheses. 4 680
UselessParentheses Useless parentheses. 4 823
UselessParentheses Useless parentheses. 4 1014
EmptyCatchBlock Avoid empty catch blocks 3 10911093
UselessParentheses Useless parentheses. 4 1121

com/foxinmy/weixin4j/http/HttpStatus.java

Rule Violation Priority Line
UnnecessaryModifier Unnecessary modifier 'static' on enum 'Series': nested enums are implicitly static 3 204236
UnnecessaryModifier Unnecessary modifier 'private' on constructor 'Series(int)': enum constructors are implicitly private 3 211213

com/foxinmy/weixin4j/http/message/JsonMessageConverter.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 4344

com/foxinmy/weixin4j/http/message/MessageConverter.java

Rule Violation Priority Line
UnnecessaryModifier Unnecessary modifier 'public' on method 'supportedMimeTypes': the method is declared in an interface type 3 25
UnnecessaryModifier Unnecessary modifier 'public' on method 'canConvert': the method is declared in an interface type 3 36
UnnecessaryModifier Unnecessary modifier 'public' on method 'convert': the method is declared in an interface type 3 4849

com/foxinmy/weixin4j/http/message/XmlMessageConverter.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 37

com/foxinmy/weixin4j/http/support/apache3/HttpComponent3.java

Rule Violation Priority Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'com.foxinmy.weixin4j.http.HttpHeaders' due to existing import 'com.foxinmy.weixin4j.http.HttpHeaders' 4 131

com/foxinmy/weixin4j/http/support/apache4/HttpComponent4_1Factory.java

Rule Violation Priority Line
UnusedImports Avoid unused imports such as 'javax.net.ssl.SSLContext' 4 5
UnusedImports Avoid unused imports such as 'org.apache.http.conn.ssl.X509HostnameVerifier' 4 12
UnusedImports Avoid unused imports such as 'com.foxinmy.weixin4j.http.HttpClientException' 4 19

com/foxinmy/weixin4j/http/support/apache4/HttpComponent4_1Response.java

Rule Violation Priority Line
EmptyStatementNotInLoop An empty statement (semicolon) not part of a loop 3 76

com/foxinmy/weixin4j/http/support/apache4/HttpComponent4_2Response.java

Rule Violation Priority Line
EmptyStatementNotInLoop An empty statement (semicolon) not part of a loop 3 80

com/foxinmy/weixin4j/http/support/okhttp/OkHttpClient2.java

Rule Violation Priority Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'com.foxinmy.weixin4j.http.HttpHeaders' due to existing import 'com.foxinmy.weixin4j.http.HttpHeaders' 4 94

com/foxinmy/weixin4j/http/support/okhttp/OkHttpClient3.java

Rule Violation Priority Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'com.foxinmy.weixin4j.http.HttpHeaders' due to existing import 'com.foxinmy.weixin4j.http.HttpHeaders' 4 90
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'okhttp3.RequestBody' due to existing import 'okhttp3.RequestBody' 4 121

com/foxinmy/weixin4j/http/weixin/WeixinRequestExecutor.java

Rule Violation Priority Line
CollapsibleIfStatements These nested if statements could be combined 3 224228
EmptyStatementNotInLoop An empty statement (semicolon) not part of a loop 3 231
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'java.security.SecureRandom' due to existing import 'java.security.*' 4 260
EmptyCatchBlock Avoid empty catch blocks 3 266267
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'java.security.SecureRandom' due to existing import 'java.security.*' 4 311

com/foxinmy/weixin4j/model/card/CardInfo.java

Rule Violation Priority Line
UnusedPrivateField Avoid unused private fields such as 'price'. 3 74
UnusedPrivateField Avoid unused private fields such as 'defaultGiftingMsg'. 3 79

com/foxinmy/weixin4j/model/card/GiftCard.java

Rule Violation Priority Line
UnusedPrivateField Avoid unused private fields such as 'subCardType'. 3 19
UnusedPrivateField Avoid unused private fields such as 'backgroundPicUrl'. 3 24
UnusedPrivateField Avoid unused private fields such as 'supplyBonus'. 3 29
UnusedPrivateField Avoid unused private fields such as 'supplyBalance'. 3 34
UnusedPrivateField Avoid unused private fields such as 'customField1'. 3 39
UnusedPrivateField Avoid unused private fields such as 'customField2'. 3 44
UnusedPrivateField Avoid unused private fields such as 'customField3'. 3 49
UnusedPrivateField Avoid unused private fields such as 'autoActivate'. 3 54
UnusedPrivateField Avoid unused private fields such as 'initBalance'. 3 59

com/foxinmy/weixin4j/model/card/GiftCardOrder.java

Rule Violation Priority Line
UnusedPrivateField Avoid unused private fields such as 'orderId'. 3 9
UnusedPrivateField Avoid unused private fields such as 'pageId'. 3 10

com/foxinmy/weixin4j/model/card/MemberUserInfo.java

Rule Violation Priority Line
UnusedImports Avoid unused imports such as 'com.alibaba.fastjson.annotation.JSONType' 4 4
UnusedImports Avoid unused imports such as 'com.foxinmy.weixin4j.type.Gender' 4 5
UnusedImports Avoid unused imports such as 'com.foxinmy.weixin4j.xml.ListsuffixResult' 4 8
UnusedImports Avoid unused imports such as 'java.util.Map' 4 11

com/foxinmy/weixin4j/model/card/VoucherCard.java

Rule Violation Priority Line
EmptyStatementNotInLoop An empty statement (semicolon) not part of a loop 3 99

com/foxinmy/weixin4j/model/paging/Pagedata.java

Rule Violation Priority Line
SimplifiedTernary Ternary operators that can be simplified with || or && 3 47

com/foxinmy/weixin4j/model/paging/Sort.java

Rule Violation Priority Line
UnnecessaryModifier Unnecessary modifier 'static' on enum 'Direction': nested enums are implicitly static 3 4749

com/foxinmy/weixin4j/payment/mch/MchPayRequest.java

Rule Violation Priority Line
UnnecessaryModifier Unnecessary modifier 'public' on method 'getPrePayId': the method is declared in an interface type 3 28
UnnecessaryModifier Unnecessary modifier 'public' on method 'getPaymentAccount': the method is declared in an interface type 3 35
UnnecessaryModifier Unnecessary modifier 'public' on method 'getPaymentType': the method is declared in an interface type 3 42
UnnecessaryModifier Unnecessary modifier 'public' on method 'toRequestString': the method is declared in an interface type 3 49
UnnecessaryModifier Unnecessary modifier 'public' on method 'toRequestObject': the method is declared in an interface type 3 56

com/foxinmy/weixin4j/sign/WeixinSignature.java

Rule Violation Priority Line
UnnecessaryModifier Unnecessary modifier 'public' on method 'encoder': the method is declared in an interface type 3 22
UnnecessaryModifier Unnecessary modifier 'public' on method 'lowerCase': the method is declared in an interface type 3 29
UnnecessaryModifier Unnecessary modifier 'public' on method 'getSignType': the method is declared in an interface type 3 36
UnnecessaryModifier Unnecessary modifier 'public' on method 'sign': the method is declared in an interface type 3 44

com/foxinmy/weixin4j/tuple/Tuple.java

Rule Violation Priority Line
UnnecessaryModifier Unnecessary modifier 'public' on method 'getMessageType': the method is declared in an interface type 3 24

com/foxinmy/weixin4j/util/ByteArrayBuffer.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 77
UselessParentheses Useless parentheses. 4 77
UselessParentheses Useless parentheses. 4 77
UselessParentheses Useless parentheses. 4 78
UselessParentheses Useless parentheses. 4 78
UselessParentheses Useless parentheses. 4 125
UselessParentheses Useless parentheses. 4 125
UselessParentheses Useless parentheses. 4 125
UselessParentheses Useless parentheses. 4 126
UselessParentheses Useless parentheses. 4 126

com/foxinmy/weixin4j/util/CharArrayBuffer.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 81
UselessParentheses Useless parentheses. 4 81
UselessParentheses Useless parentheses. 4 81
UselessParentheses Useless parentheses. 4 82
UselessParentheses Useless parentheses. 4 82
UselessParentheses Useless parentheses. 4 180
UselessParentheses Useless parentheses. 4 180
UselessParentheses Useless parentheses. 4 180
UselessParentheses Useless parentheses. 4 181
UselessParentheses Useless parentheses. 4 181

com/foxinmy/weixin4j/util/DigestUtil.java

Rule Violation Priority Line
EmptyCatchBlock Avoid empty catch blocks 3 8182

com/foxinmy/weixin4j/util/FileUtil.java

Rule Violation Priority Line
EmptyStatementNotInLoop An empty statement (semicolon) not part of a loop 3 121
EmptyStatementNotInLoop An empty statement (semicolon) not part of a loop 3 127

com/foxinmy/weixin4j/util/LinkedCaseInsensitiveMap.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 65
UselessParentheses Useless parentheses. 4 95
UselessParentheses Useless parentheses. 4 119120

com/foxinmy/weixin4j/util/MapUtil.java

Rule Violation Priority Line
EmptyStatementNotInLoop An empty statement (semicolon) not part of a loop 3 105

com/foxinmy/weixin4j/util/ObjectId.java

Rule Violation Priority Line
AvoidBranchingStatementAsLastInLoop Avoid using a branching statement as the last in a loop. 2 107
UselessParentheses Useless parentheses. 4 142
UselessParentheses Useless parentheses. 4 143
UselessParentheses Useless parentheses. 4 191
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'java.util.Random' due to existing import 'java.util.Random' 4 272
UselessParentheses Useless parentheses. 4 272
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'java.util.Random' due to existing import 'java.util.Random' 4 304
EmptyCatchBlock Avoid empty catch blocks 3 308309

com/foxinmy/weixin4j/util/ReflectionUtil.java

Rule Violation Priority Line
EmptyCatchBlock Avoid empty catch blocks 3 172174
EmptyCatchBlock Avoid empty catch blocks 3 196198

com/foxinmy/weixin4j/util/Weixin4jConfigUtil.java

Rule Violation Priority Line
EmptyStatementNotInLoop An empty statement (semicolon) not part of a loop 3 30
EmptyStatementNotInLoop An empty statement (semicolon) not part of a loop 3 69
EmptyStatementNotInLoop An empty statement (semicolon) not part of a loop 3 71

com/foxinmy/weixin4j/util/WeixinErrorUtil.java

Rule Violation Priority Line
EmptyStatementNotInLoop An empty statement (semicolon) not part of a loop 3 37

com/foxinmy/weixin4j/xml/ListsuffixResultDeserializer.java

Rule Violation Priority Line
EmptyStatementNotInLoop An empty statement (semicolon) not part of a loop 3 56
EmptyStatementNotInLoop An empty statement (semicolon) not part of a loop 3 93
EmptyStatementNotInLoop An empty statement (semicolon) not part of a loop 3 169
EmptyStatementNotInLoop An empty statement (semicolon) not part of a loop 3 206

com/foxinmy/weixin4j/xml/ListsuffixResultSerializer.java

Rule Violation Priority Line
EmptyStatementNotInLoop An empty statement (semicolon) not part of a loop 3 58
EmptyStatementNotInLoop An empty statement (semicolon) not part of a loop 3 131
EmptyStatementNotInLoop An empty statement (semicolon) not part of a loop 3 137

com/foxinmy/weixin4j/xml/XmlStream.java

Rule Violation Priority Line
EmptyStatementNotInLoop An empty statement (semicolon) not part of a loop 3 88
EmptyStatementNotInLoop An empty statement (semicolon) not part of a loop 3 141
EmptyStatementNotInLoop An empty statement (semicolon) not part of a loop 3 192
EmptyStatementNotInLoop An empty statement (semicolon) not part of a loop 3 229
EmptyStatementNotInLoop An empty statement (semicolon) not part of a loop 3 324