final Version
parent
4074d08a1c
commit
65f4340099
|
@ -113,9 +113,12 @@ public class ThreadsafeSimplifiedList<T>
|
||||||
throw new IndexOutOfBoundsException(index + " out of bounds");
|
throw new IndexOutOfBoundsException(index + " out of bounds");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
try {
|
||||||
ptr.element = element;
|
ptr.element = element;
|
||||||
ptr.nodeLock.unlock();
|
|
||||||
return element;
|
return element;
|
||||||
|
} finally {
|
||||||
|
ptr.nodeLock.unlock();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue