A RetroSearch Logo

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

Search Query:

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

[java] MethodArgumentCouldBeFinal shouldn't report unused parameters · Issue #4512 · pmd/pmd · GitHub

Affects PMD Version: 6.x

Rule: MethodArgumentCouldBeFinal

Description:

Similar like #4511: Unused formal parameters shouldn't be reported. This is a different problem UnusedFormalParameter

This has been found via #3123. It is already fixed with PMD 7.0.0-rc1.
Has been fixed with #3113.

Code Sample demonstrating the issue:

public class Foo {
    public static void main(String[] args) {}
}

Expected outcome:

PMD reports a violation at line 2, but that's wrong. That's a false positive.


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