mirror of
https://github.com/github/codeql.git
synced 2026-05-02 12:15:17 +02:00
Fix FP for always-locked fields
This commit is contained in:
@@ -14,10 +14,10 @@ class FieldAlwaysLocked {
|
||||
protected synchronized void checkOut() {
|
||||
Object o;
|
||||
if (field.size() > 0) {
|
||||
Enumeration e = field.keys(); // $ SPURIOUS: Alert
|
||||
Enumeration e = field.keys();
|
||||
while (e.hasMoreElements()) {
|
||||
o = e.nextElement();
|
||||
field.remove(o); // $ SPURIOUS: Alert
|
||||
field.remove(o);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user