fix cast guard to be of the c* FutureTask type

This commit is contained in:
Dave Brosius 2014-05-30 23:54:17 -04:00
parent e56a64edb0
commit f66689db97
1 changed files with 1 additions and 1 deletions

View File

@ -105,7 +105,7 @@ public abstract class AbstractTracingAwareExecutorService implements TracingAwar
return (TraceSessionFutureTask<T>) callable;
return new TraceSessionFutureTask<T>(callable, null);
}
if (callable instanceof java.util.concurrent.FutureTask)
if (callable instanceof FutureTask)
return (FutureTask<T>) callable;
return new FutureTask<>(callable);
}