@SuppressWarning
annotation, or// noinspection
line comment, or/** noinspection */
JavaDoc comment
For example:
class C {
// symbol is no more unused,
// but annotation is still around
@SuppressWarning("UNUSED_SYMBOL")
private boolean CONST = true;
void f() {
CONST = false;
}