alibaba / p3c

Alibaba Java Coding Guidelines pmd implements and IDE plugin
https://github.com/alibaba/p3c/wiki
Apache License 2.0
30.41k stars 8.06k forks source link

EnumConstantsMustHaveCommentRule was unable to find multiple uncommented enum declarations #935

Open diablowu opened 2 years ago

diablowu commented 2 years ago

Describe the bug EnumConstantsMustHaveCommentRule was unable to find multiple uncommented enum declarations

To Reproduce Steps to reproduce the behavior:

public enum TestEnum {

    /**
        fail
    */
    FAIL(),
    OK();
}

Expected behavior Enum declare OK was uncommented, should be found.