With the "Final Parameters" check turned on, the following method declaration:
private native void foo(int bar);
generates a warning
Parameter bar should be final
As far as I can figure, having final here serves no useful purpose here. This is similar to the abstract method case, which doesn't generate a warning:
protected abstract void bar(int baz);
I'm using version 4.3.2 of the Checkstyle plug-in in Eclipse.
Log in to post a comment.