GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — [java] AvoidReassigningParameters reports violations on wrong line numbers · Issue #3254 · pmd/pmd Closed DescriptionAffects PMD Version: 6.34.0 Description: The rule AvoidReassigningParameters reports each assignment. But the line reported is the declaration of the parameter instead of the assignment. This is not helpful. Consider the example below with one parameter. Either only one violation should be reported at the declaration of the parameter or two violations on the two lines of the assignments. Code Sample demonstrating the issue: public class AvoidReassigningParameters { public void a(String b) { // line 2: here are two violations reported b = "1"; // line 3: no violation, but expected b = "2"; // line 4: no violation, but expected } } Running PMD through: [CLI | Ant | Maven | Gradle | Designer | Other] Activity
|
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |