Use Java 5 LinkedList API, not Java 6. Note that removeFirstOccurrence(Object) delegates to remove(Object) in Java 6.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1199798 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Gary D. Gregory 2011-11-09 15:32:12 +00:00
parent 67d4ef2e92
commit 3ca916f3e4
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@ public synchronized void add() {
}
public synchronized void delete() {
listField.removeFirstOccurrence(Integer.valueOf(random.nextInt(N)));
listField.remove(Integer.valueOf(random.nextInt(N)));
}
}