A RetroSearch Logo

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

Search Query:

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

[java] DataClass example from documentation results in false negative. · Issue #2780 · pmd/pmd · GitHub

Affects PMD Version: 6.27.0

Rule: DataClass

https://pmd.github.io/latest/pmd_rules_java_design.html#dataclass

Description: Using the code in "Example(s):" section of the documentation should return a violation case in the output, but it doesn't.

Code Sample demonstrating the issue:

Input:

public class DataClass {

  public int bar = 0;
  public int na = 0;
  private int bee = 0;

  public void setBee(int n) {
    bee = n;
  }
}

Output:

{"formatVersion":0,"pmdVersion":"6.27.0","timestamp":"","files":[],"suppressedViolations":[],"processingErrors":[],"configurationErrors":[]}

Expected outcome:

Running PMD through: [Maven]


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