What hack can I use to suppress an unused function warning?
Posted
by Yuval A
on Stack Overflow
See other posts from Stack Overflow
or by Yuval A
Published on 2010-03-25T13:20:33Z
Indexed on
2010/03/25
13:23 UTC
Read the original article
Hit count: 181
java
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?
© Stack Overflow or respective owner