clear removed entries in backing array

git-svn-id: https://svn.code.sf.net/p/jode/code/trunk@1070 379699f6-c40d-0410-875b-85095c16579e
branch_1_1
jochen 26 years ago
parent 00edbfd0df
commit f4d9aff1da
  1. 3
      jode/jode/flow/VariableSet.java

@ -134,6 +134,7 @@ public final class VariableSet extends AbstractSet implements Cloneable {
for (int i=0; i<count;i++) { for (int i=0; i<count;i++) {
if (locals[i].getLocalInfo() == li) { if (locals[i].getLocalInfo() == li) {
locals[i] = locals[--count]; locals[i] = locals[--count];
locals[count] = null;
return true; return true;
} }
} }
@ -162,6 +163,7 @@ public final class VariableSet extends AbstractSet implements Cloneable {
locals, pos-1, count - pos); locals, pos-1, count - pos);
count--; count--;
pos--; pos--;
locals[count] = null;
} }
}; };
} }
@ -222,3 +224,4 @@ public final class VariableSet extends AbstractSet implements Cloneable {
} }
} }
} }

Loading…
Cancel
Save