| 89 | |
| 90 | // Callback that preserves the original orders of the Deferreds. |
| 91 | final class NotifyOrdered<T> implements Callback<T, T> { |
| 92 | private final int index; |
| 93 | NotifyOrdered(int index) { |
| 94 | this.index = index; |
| 95 | } |
| 96 | public T call(final T arg) { |
| 97 | recordCompletion(arg, index); |
| 98 | return arg; |
| 99 | } |
| 100 | public String toString() { |
| 101 | return "notify #" + index + " DeferredGroup@" |
| 102 | + DeferredGroup.super.hashCode(); |
| 103 | } |
| 104 | }; |
| 105 | |
| 106 | if (ordered) { |
| 107 | int i = 0; |
nothing calls this directly
no outgoing calls
no test coverage detected