Example:
public class A {
private int count = 0;
void test() {
int count = 7;
}
}
Eclipse is smart enough to ignore the common cases of constructors and setter methods; i.e. this pattern is not flagged:
public class A {
private int count = 0;
public A(int count) {
this.count = count;
}
public void setCount(int count) {
this.count = count;
}
}
However you can request this pattern to be flagged too if you want.
Problem because:
Did you really mean to use the field?
Severity: high; possible bug; hard to spot