changeset 8945:2a6611ebfb6c

8029141: Add @FunctionalInterface annotation to Callable interface Reviewed-by: chegar, alanb
author smarks
date Wed, 04 Dec 2013 18:02:33 +0000
parents bfe3a26a2c5e
children 6deabb82f72b
files src/share/classes/java/util/concurrent/Callable.java
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/java/util/concurrent/Callable.java	Wed Dec 04 09:32:26 2013 -0800
+++ b/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.