What hack can I use to suppress an unused function warning?
- by Yuval A
Consider a private method which is called from JNI and not used otherwise, generating a compiler warning about an unused method:
private void someMethodCalledOnlyFromJNI() { // WARNING: method is never used
// ....
}
This is some legacy code in Java 1.4 - so no dice on @SuppressWarnings.
What hack would you use to suppress this compiler warning?