This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
public class Test { private int a; private int b; private int c; public Test(int a, int b, int c) { // "c" is not marked as unused this.a = a; this.b = b; } } In the case above I have added "c" to parameters and as a private variable, but forgotten to do the assignment. Of course if I had marked all variables as final I would have noticed the error, but showing a warning would nevertheless be a good thing in my opinion. Issue https://netbeans.org/bugzilla/show_bug.cgi?id=199451 is related, but I think this issue has less potential problems.