Skip to content
This repository has been archived by the owner on Sep 23, 2023. It is now read-only.

CommentRequired rule broken after annonymous inner classes #10

Closed
SimonWeimann opened this issue Mar 4, 2014 · 1 comment
Closed

CommentRequired rule broken after annonymous inner classes #10

SimonWeimann opened this issue Mar 4, 2014 · 1 comment
Assignees
Labels

Comments

@SimonWeimann
Copy link

Hi,

we are using the latest eclipse-pmd plugin (0.9) with a pmd 5.1 ruleset. If we have an annnonymous inner class like the following code extract, :

/** {@inheritDoc} */
    @Override
    public List<String> getNamespaces() throws RuntimeException {
...
        new FileFilter() {
            /** {@inheritDoc} */
            @Override
            public boolean accept(FileName dir, String fileName) {
                return fileName.endsWith(PROPS_FILE_ENDING);
            }
        };
...
    }

the rule will be always marked as PMD Problem. Even subsequent methods in the class with valid javaDoc will be marked as PMD Problem.
Removing the annonymous inner class resolves this issue.

Looks like a Bug in the plugin.

@acanda
Copy link
Owner

acanda commented Mar 4, 2014

Hi Simon,

there are two different tools involved here. There is PMD which checks the code and eclipse-pmd which marks the problems in the Eclipse editors.

This looks like an issue with PMD itself. Please open a bug report at the PMD bug tracker. Also let them know which rule caused the PMD problem.

@acanda acanda closed this as completed Mar 14, 2014
@acanda acanda added the invalid label Jul 5, 2014
@acanda acanda self-assigned this Jul 5, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants