diff --git a/src/main/java/org/apache/commons/collections4/list/TreeList.java b/src/main/java/org/apache/commons/collections4/list/TreeList.java index 09e4200ce..7e04b444d 100644 --- a/src/main/java/org/apache/commons/collections4/list/TreeList.java +++ b/src/main/java/org/apache/commons/collections4/list/TreeList.java @@ -710,12 +710,12 @@ public class TreeList extends AbstractList { /** * Sets the relative position. */ - private int setOffset(final AVLNode node, final int newOffest) { + private int setOffset(final AVLNode node, final int newOffset) { if (node == null) { return 0; } final int oldOffset = getOffset(node); - node.relativePosition = newOffest; + node.relativePosition = newOffset; return oldOffset; }