A RetroSearch Logo

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

Search Query:

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

[java] CommentDefaultAccessModifierRule ignores constructors · Issue #536 · pmd/pmd · GitHub

Rule Set:
java-comments/CommentDefaultAccessModifierRule

Description:
The rule detects uncommented package-private fields, methods and inner classes, but fails to detect constructors.

Code Sample demonstrating the issue:

public class Foo {
    Foo() { } // warning expected here
}

public enum Bar {
    ONE, TWO;

    Bar() { } // but no warning expected here (implicitly private)
}

Running PMD through: Any


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