8029141: Add @FunctionalInterface annotation to Callable interface

Reviewed-by: chegar, alanb
This commit is contained in:
Stuart Marks 2013-12-04 18:02:33 +00:00
parent 48000f4e2d
commit e9e560db6d

View File

@ -54,6 +54,7 @@ package java.util.concurrent;
* @author Doug Lea
* @param <V> the result type of method {@code call}
*/
@FunctionalInterface
public interface Callable<V> {
/**
* Computes a result, or throws an exception if unable to do so.