简体   繁体   English

PMD规则可在Java中查找注释

[英]PMD rule to find annotations in java

Does anyone know if PMD has the capabilities to find annotations? 有谁知道PMD是否具有查找注释的功能? Eg If I have a @BeforeClass annotation in my JUnit testclasses, will xpath treat the annotation as being just another node? 例如,如果我的JUnit测试类中有@BeforeClass注释,xpath会将注释视为另一个节点吗?

Well you can see example of rules interfering with annotations here . 好吧,您可以在此处看到干扰注释的规则示例。 Also look at the next few to follow. 另请参阅接下来的几篇。 All of them deal with annotation checks. 它们都处理注释检查。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM