A RetroSearch Logo

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

Search Query:

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

[java] CommentDefaultAccessModifierRule shows incorrect message · Issue #1440 · pmd/pmd · GitHub

Affects PMD Version:
6.9.0

Rule:
codestyle/CommentDefaultAccessmodifier

Description:

When reporting on a constructor, the error message is:

To avoid mistakes add a comment at the beginning of the null constructor if you want a default access modifier

It shouldn't say null, but the name of the constructor:

To avoid mistakes add a comment at the beginning of the Foo constructor if you want a default access modifier

Code Sample demonstrating the issue:

public class Foo {
    Foo() { }
}

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