make sure lock gets unlocked

This commit is contained in:
Dave Brosius 2015-05-08 15:58:54 -04:00
parent 9e9846e73d
commit b66475c4e0
1 changed files with 1 additions and 1 deletions

View File

@ -153,10 +153,10 @@ public class DynamicList<E>
public void remove(Node<E> node)
{
lock.writeLock().lock();
assert node.value != null;
node.value = null;
try
{
assert node.value != null;
size--;
// go up through each level in the skip list, unlinking this node; this entails