PMD Results

The following document contains the results of PMD 6.29.0.

Violations By Priority

Priority 3

com/foxinmy/weixin4j/pay/api/CashApi.java

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

com/foxinmy/weixin4j/pay/api/PayApi.java

Rule Violation Line
EmptyStatementNotInLoop An empty statement (semicolon) not part of a loop 540
EmptyStatementNotInLoop An empty statement (semicolon) not part of a loop 625
EmptyStatementNotInLoop An empty statement (semicolon) not part of a loop 651

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

Rule Violation Line
UnnecessaryModifier Unnecessary modifier 'public' on method 'getPrePayId': the method is declared in an interface type 26
UnnecessaryModifier Unnecessary modifier 'public' on method 'getPaymentAccount': the method is declared in an interface type 33
UnnecessaryModifier Unnecessary modifier 'public' on method 'getPaymentType': the method is declared in an interface type 40
UnnecessaryModifier Unnecessary modifier 'public' on method 'toRequestString': the method is declared in an interface type 47
UnnecessaryModifier Unnecessary modifier 'public' on method 'toRequestObject': the method is declared in an interface type 54

Priority 4

com/foxinmy/weixin4j/pay/PayPackageBuilder.java

Rule Violation Line
UnusedImports Avoid unused imports such as 'com.alibaba.fastjson.JSON' 3
UnusedImports Avoid unused imports such as 'com.foxinmy.weixin4j.pay.payment.mch.SceneInfoStore' 7

com/foxinmy/weixin4j/pay/payment/mch/MerchantResult.java

Rule Violation Line
UnusedImports Avoid unused imports such as 'com.foxinmy.weixin4j.pay.type.SignType' 5

com/foxinmy/weixin4j/pay/sign/WeixinPaymentSignature.java

Rule Violation Line
UnusedImports Avoid unused imports such as 'com.foxinmy.weixin4j.exception.WeixinException' 3

Files

com/foxinmy/weixin4j/pay/PayPackageBuilder.java

Rule Violation Priority Line
UnusedImports Avoid unused imports such as 'com.alibaba.fastjson.JSON' 4 3
UnusedImports Avoid unused imports such as 'com.foxinmy.weixin4j.pay.payment.mch.SceneInfoStore' 4 7

com/foxinmy/weixin4j/pay/api/CashApi.java

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

com/foxinmy/weixin4j/pay/api/PayApi.java

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

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

Rule Violation Priority Line
UnnecessaryModifier Unnecessary modifier 'public' on method 'getPrePayId': the method is declared in an interface type 3 26
UnnecessaryModifier Unnecessary modifier 'public' on method 'getPaymentAccount': the method is declared in an interface type 3 33
UnnecessaryModifier Unnecessary modifier 'public' on method 'getPaymentType': the method is declared in an interface type 3 40
UnnecessaryModifier Unnecessary modifier 'public' on method 'toRequestString': the method is declared in an interface type 3 47
UnnecessaryModifier Unnecessary modifier 'public' on method 'toRequestObject': the method is declared in an interface type 3 54

com/foxinmy/weixin4j/pay/payment/mch/MerchantResult.java

Rule Violation Priority Line
UnusedImports Avoid unused imports such as 'com.foxinmy.weixin4j.pay.type.SignType' 4 5

com/foxinmy/weixin4j/pay/sign/WeixinPaymentSignature.java

Rule Violation Priority Line
UnusedImports Avoid unused imports such as 'com.foxinmy.weixin4j.exception.WeixinException' 4 3