What hack can I use to suppress an unused function warning?
<p>Consider a private method which is called from JNI and not used otherwise, generating a compiler warning about an unused method:</p>

<pre><code>private void someMethodCalledOnlyFromJNI() { // WARNING: method is never used
    // ....
}
</code></pre>

<p>This is some legacy code in Java 1.4 - so no dice on <code>@SuppressWarnings</code>.</p>

<p>What hack would you use to suppress this compiler warning?</p>

<hr>

<p><strong>Edit:</strong> Obviously this is just a warning and it can easily be ignored. But, personally, I hate warnings in my code just as much as I don't want to see errors in it. AFAIC - my code <strong>should have 0 warnings</strong>, it might be an exaggeration, but I am very pedantic about this.</p>

<p>Just as an example, someone might see this function, not know it is used from JNI, and simply delete it.</p>
