mirror of
https://github.com/apache/commons-collections.git
synced 2025-02-17 15:35:00 +00:00
Make the code clearer (#119)
This commit is contained in:
parent
98293b24bd
commit
f08623354e
@ -24,6 +24,7 @@ import java.util.Deque;
|
||||
import java.util.Iterator;
|
||||
import java.util.ListIterator;
|
||||
import java.util.NoSuchElementException;
|
||||
import java.util.Objects;
|
||||
|
||||
import org.apache.commons.collections4.OrderedIterator;
|
||||
|
||||
@ -438,7 +439,7 @@ public class TreeList<E> extends AbstractList<E> {
|
||||
return result;
|
||||
}
|
||||
}
|
||||
if (value == null ? value == object : value.equals(object)) {
|
||||
if (Objects.equals(value, object)) {
|
||||
return index;
|
||||
}
|
||||
if (getRightSubTree() != null) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user