# | Line 85 | Line 85 | public class FutureTask<V> implements Ru | |
---|---|---|
85 | */ | |
86 | private V report(int s) throws ExecutionException { | |
87 | Object x = outcome; | |
88 | < | if (s == NORMAL) |
89 | < | return (V)x; |
88 | > | if (s == NORMAL) { |
89 | > | @SuppressWarnings("unchecked") V v = (V)x; |
90 | > | return v; |
91 | > | } |
92 | if (s >= CANCELLED) | |
93 | throw new CancellationException(); | |
94 | throw new ExecutionException((Throwable)x); |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |