mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
treat second and subsequent occurrence calls for the same value as no op (to avoid (de)serialization problems for duplicates like WEB-20651)
This commit is contained in:
@@ -124,6 +124,10 @@ public class ObjectStubTree<T extends Stub> {
|
||||
} else {
|
||||
int lastZero;
|
||||
for(lastZero = list.length - 1; lastZero >=0 && list[lastZero] == 0; --lastZero);
|
||||
if (list[lastZero] == myStubIdx) {
|
||||
// second and subsequent occurrence calls for the same value are no op
|
||||
return;
|
||||
}
|
||||
++lastZero;
|
||||
|
||||
if (lastZero == list.length) {
|
||||
|
||||
Reference in New Issue
Block a user