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