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

Future
closed
nobody
Check (274)
5
2016-02-28
2007-07-28
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

  • Roman Ivanov

    Roman Ivanov - 2016-02-28
    • status: open --> closed
    • Group: --> Future
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks