ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/main/java/util/concurrent/FutureTask.java
(Generate patch)

Comparing jsr166/src/main/java/util/concurrent/FutureTask.java (file contents):
Revision 1.87 by jsr166, Sun Jun 19 07:46:18 2011 UTC vs.
Revision 1.88 by jsr166, Sun Jun 19 07:57:06 2011 UTC

# 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);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines