提交 bea8a261 编写于 作者: S smarks

8029141: Add @FunctionalInterface annotation to Callable interface

Reviewed-by: chegar, alanb
上级 1026945b
...@@ -54,6 +54,7 @@ package java.util.concurrent; ...@@ -54,6 +54,7 @@ package java.util.concurrent;
* @author Doug Lea * @author Doug Lea
* @param <V> the result type of method {@code call} * @param <V> the result type of method {@code call}
*/ */
@FunctionalInterface
public interface Callable<V> { public interface Callable<V> {
/** /**
* Computes a result, or throws an exception if unable to do so. * Computes a result, or throws an exception if unable to do so.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册