A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/pmd/pmd/issues/1783 below:

[apex] comments on constructor not recognized when the Class has inner class · Issue #1783 · pmd/pmd · GitHub

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