#468 Don't warn for non-final parameters of native methods

open
nobody
Check (274)
5
2012-10-10
2007-07-28
Albert Strasheim
No

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.

Discussion