-
Bug
-
Resolution: Fixed
-
P4
-
8, 11, 13, 15, 16, 17
-
b14
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8320896 | 11.0.22 | Sonia Zaldana Calles | P4 | Resolved | Fixed | b05 |
SonarCloud reports:
Remove or correct this "removeAll" call.
void removeAll() {
items.removeAll(items); // <--- here
updateScrollbars();
}
Calling removeAll with the same collection risks concurrent modification exceptions. clear() would be correct and more efficient.
Remove or correct this "removeAll" call.
void removeAll() {
items.removeAll(items); // <--- here
updateScrollbars();
}
Calling removeAll with the same collection risks concurrent modification exceptions. clear() would be correct and more efficient.
- backported by
-
JDK-8320896 sun.awt.X11.ListHelper.removeAll() should use clear()
- Resolved