This commit is contained in:
Gary Gregory 2019-11-23 17:24:56 -05:00
commit 98293b24bd
1 changed files with 2 additions and 2 deletions

View File

@ -710,12 +710,12 @@ public class TreeList<E> extends AbstractList<E> {
/** /**
* Sets the relative position. * Sets the relative position.
*/ */
private int setOffset(final AVLNode<E> node, final int newOffest) { private int setOffset(final AVLNode<E> node, final int newOffset) {
if (node == null) { if (node == null) {
return 0; return 0;
} }
final int oldOffset = getOffset(node); final int oldOffset = getOffset(node);
node.relativePosition = newOffest; node.relativePosition = newOffset;
return oldOffset; return oldOffset;
} }