Affects PMD Version: 6.13.0
Rule: ApexDoc
Description: comments on constructor not being recognized when the apex class has inner classes
Code Sample demonstrating the issue:
/**
* @description outer class
*/
public class OuterClass {
private String testStr;
/**
* @description constructor
*
* @param testStr test string
*/
public OuterClass(String testStr) {
this.testStr = testStr;
}
/**
* @description inner class
*/
public class InnerClass {
}
}
when I run pmd with the rule, it reports that there is Missing ApexDoc Comment on the OuterClass constructor, after I removed the InnerClass definition, it passed the pmd check.
Running PMD through: CLI
Java Version: "1.8.0_25"
OS: Mac Mojave 10.14.4
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4