java代码检查工具pmd_PMD 5.1.3 发布下载 Java代码检查工具 PMD

PMD是一款采用BSD协议发布的Java程序代码检查工具。该工具可以做到检查Java代码中是否含有未使用的变量、是否含有空的抓取块、是否含有不必要的对象等。该软件功能强大,扫描效率高,是Java程序员debug的好帮手。

PMD支持的编辑器包括:

JDeveloper、Eclipse、JEdit、JBuilder、BlueJ、CodeGuide、NetBeans/Sun Java Studio Enterprise/Creator、IntelliJ IDEA、TextPad、Maven、Ant,、Gel、JCreator和Emacs。

PMD 5.1.3 发布,此版本现已提供下载,更新内容如下:

Bug 修复:

#1156: False failure with “Avoid unused private methods”

#1187: double variable with AvoidDecimalLiteralsInBigDecimalConstructor

#1228: UnusedPrivateMethod returns false positives

#1230: UseCollectionIsEmpty gets false positives

#1231: No Error Message on Missing Rule

#1233: UnusedPrivateMethod: False positive : method called on returned object.

#1234: Unused private methods still giving false positives in 5.1.3 snapshot

#1235: scope dependencies in POM file

#1239: StackOverflowError in AbstractTokenizer.parseString running CPD on >1MB JS file

#1241: False+ AvoidProtectedMethodInFinalClassNotExtending

#1243: Useless Parentheses False Positive

#1245: False Positive for Law of Demeter

#1246: False positive from MissingBreakInSwitch

#1247: Not able to recognize JDK 8 Static Method References

#1249: Regression: UnusedPrivateMethod from 5.0.5 to 5.1.2

#1250: Method attribute missing for some violations

#1251: UnusedPrivateMethod false positives for boxing & unboxing arguments

新特性和改进:

#1232: Make ShortClassName configurable

#1244: FieldDeclarationsShouldBeAtStartOfClass and anonymous classes

New/Modified Rules:

FieldDeclarationsShouldBeAtStartOfClass (ruleset java-design) has a new property called ignoreAnonymousClassDeclarations: Ignore Field Declarations, that are initialized with anonymous class declarations. This property is enabled by default. See feature #1244.

ShortClassName (ruleset java-naming) has a new property called minimum: Number of characters that are required as a minimum for a class name. By default, 5 characters are required – if the class name is shorter, a violation will be reported. See feature #1232.

关于作者

创新性IT解决方案提供商,专注解决信息化问题,用心陪伴企业成长。芊雅企服通过轻量的产品技术咨询和敏捷的软件研发,为企业提供定制化软件解决方案的一站式落地服务。用技术为企业加速!帮助传统企业技术上 “通水电”,我们相信产品和技术能让世界变得更好!

相关文章

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值