()
| 130 | } |
| 131 | |
| 132 | @Override |
| 133 | protected void afterDone() { |
| 134 | maybePropagateCancellation(delegateRef); |
| 135 | Future<?> localTimer = timer; |
| 136 | // Try to cancel the timer as an optimization. |
| 137 | // timer may be null if this call to run was by the timer task since there is no happens-before |
| 138 | // edge between the assignment to timer and an execution of the timer task. |
| 139 | if (localTimer != null) { |
| 140 | localTimer.cancel(false); |
| 141 | } |
| 142 | delegateRef = null; |
| 143 | timer = null; |
| 144 | } |
| 145 | } |
nothing calls this directly
no test coverage detected