Still an issue in #5231. Both the UNUSED_SYMBOL suppression as well as the AutoUnboxing suppression are reported, but it misses the unchecked suppression.
class C {
@SuppressWarnings("UNUSED_SYMBOL")
privateboolean CONST = true;
void f() {
CONST = false;
}
protected Set<String> getStrings() {
//noinspection AutoUnboxing
int i = 1;
//noinspection unchecked
return Collections.emptySet();
}
}
Sascha Weinreuter - 17 Apr 06 19:47 Still an issue in #5231. Both the UNUSED_SYMBOL suppression as well as the AutoUnboxing suppression are reported, but it misses the unchecked suppression.
class C {
@SuppressWarnings("UNUSED_SYMBOL")
privateboolean CONST = true;
void f() {
CONST = false;
}
protected Set<String> getStrings() {
//noinspection AutoUnboxing
int i = 1;
//noinspection unchecked
return Collections.emptySet();
}
}
class C { @SuppressWarnings("UNUSED_SYMBOL") private boolean CONST = true; void f() { CONST = false; } protected Set<String> getStrings() { //noinspection AutoUnboxing int i = 1; //noinspection unchecked return Collections.emptySet(); } }