We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a4b438c + 3e148a8 commit 3c5efaaCopy full SHA for 3c5efaa
src/main/java/rx/subjects/ReplaySubject.java
@@ -717,8 +717,7 @@ public boolean isEmpty() {
717
@SuppressWarnings("unchecked")
718
public T[] toArray(T[] a) {
719
List<T> list = new ArrayList<T>();
720
- NodeList.Node<Object> l = head();
721
- NodeList.Node<Object> next = l.next;
+ NodeList.Node<Object> next = head().next;
722
while (next != null) {
723
Object o = leaveTransform.call(next.value);
724
@@ -727,7 +726,6 @@ public T[] toArray(T[] a) {
727
726
} else {
728
list.add((T)o);
729
}
730
- l = next;
731
next = next.next;
732
733
return list.toArray(a);
0 commit comments