8029141: Add @FunctionalInterface annotation to Callable interface
authorsmarks
Wed, 04 Dec 2013 18:02:33 +0000
changeset 21976 92f0602be7c2
parent 21975 2f8d24dcb6ca
child 21977 17f538f05b73
8029141: Add @FunctionalInterface annotation to Callable interface Reviewed-by: chegar, alanb
jdk/src/share/classes/java/util/concurrent/Callable.java
--- a/jdk/src/share/classes/java/util/concurrent/Callable.java	Wed Dec 04 09:32:26 2013 -0800
+++ b/jdk/src/share/classes/java/util/concurrent/Callable.java	Wed Dec 04 18:02:33 2013 +0000
@@ -54,6 +54,7 @@
  * @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.