mirror of
https://github.com/apache/commons-lang.git
synced 2025-02-09 19:45:01 +00:00
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:
parent
67d4ef2e92
commit
3ca916f3e4
@ -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)));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user