|
1 | 1 | package io.sentry; |
2 | 2 |
|
3 | | -import static io.sentry.util.CollectionUtils.reverseListIterator; |
4 | | - |
5 | 3 | import io.sentry.protocol.Contexts; |
6 | 4 | import io.sentry.protocol.SentryId; |
7 | 5 | import io.sentry.protocol.SentryTransaction; |
8 | 6 | import io.sentry.protocol.TransactionNameSource; |
9 | 7 | import io.sentry.util.AutoClosableReentrantLock; |
| 8 | +import io.sentry.util.CollectionUtils; |
10 | 9 | import io.sentry.util.Objects; |
11 | 10 | import io.sentry.util.SpanUtils; |
12 | 11 | import java.util.List; |
@@ -158,7 +157,7 @@ private void onDeadlineTimeoutReached() { |
158 | 157 | // iterate in reverse order to ensure leaf spans are processed before their parents |
159 | 158 | @NotNull |
160 | 159 | final ListIterator<Span> iterator = |
161 | | - reverseListIterator((CopyOnWriteArrayList<Span>) this.children); |
| 160 | + CollectionUtils.reverseListIterator((CopyOnWriteArrayList<Span>) this.children); |
162 | 161 | while (iterator.hasPrevious()) { |
163 | 162 | @NotNull final Span span = iterator.previous(); |
164 | 163 | span.setSpanFinishedCallback(null); |
@@ -913,7 +912,7 @@ public void setName(@NotNull String name, @NotNull TransactionNameSource transac |
913 | 912 | public @Nullable ISpan getLatestActiveSpan() { |
914 | 913 | @NotNull |
915 | 914 | final ListIterator<Span> iterator = |
916 | | - reverseListIterator((CopyOnWriteArrayList<Span>) this.children); |
| 915 | + CollectionUtils.reverseListIterator((CopyOnWriteArrayList<Span>) this.children); |
917 | 916 | while (iterator.hasPrevious()) { |
918 | 917 | @NotNull final Span span = iterator.previous(); |
919 | 918 | if (!span.isFinished()) { |
|
0 commit comments