src/share/classes/java/util/concurrent/FutureTask.java
Print this page
@@ -83,11 +83,11 @@
*
* @param runnable the runnable task
* @param result the result to return on successful completion. If
* you don't need a particular result, consider using
* constructions of the form:
- * <tt>Future<?> f = new FutureTask<Object>(runnable, null)</tt>
+ * {@code Future<?> f = new FutureTask<Void>(runnable, null)}
* @throws NullPointerException if runnable is null
*/
public FutureTask(Runnable runnable, V result) {
sync = new Sync(Executors.callable(runnable, result));
}