You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I found an inconsistent detection result about the rule SA_FIELD_SELF_ASSIGNMENT, the code example is below. SpotBugs can detect the bug in line 4, but cannot in line 8. These two lines are equivalent, hence, I think this is a false negative.
publicclassC {
intfoo;
voidfoo1() {
foo = foo++; // can report a warning in this line
}
classsubC {
voidfoo2() {
foo = foo++; // should report a warning in this line
}
}
}