Here's the code snippet:
class MyClass {
private native void foo();
}
For the above, Eclipse (namely, 3.7.0) gives a warning
The foo () method of type MyClass is never used locally
Ok, but when I try to suppress the warning:
class MyClass {
@SuppressWarnings("unused")
private native void foo();
}
He complains
Unnecesary @SuppressWarnings ("unused")
So, is there a way to make him stop complaining?
Update
Sorry for the incomplete information - this warning is displayed only in the AspectJ project. As soon as I create a simple Java project and put my class in it, everything works fine.
As far as I understand, AspectJ uses its own compiler, so this warning should be created by it. I use the AspectJ application development plugin:
Version: 2.1.3.e37x-20110628-1900
AspectJ version: 1.6.12.20110613132200