8022657: Add FunctionalInterface annotation to awt interfaces
authorserb
Thu, 17 Oct 2013 20:54:33 +0400
changeset 21264 b6c4288ebb92
parent 21263 77142152d60f
child 21265 d037a0675f8d
8022657: Add FunctionalInterface annotation to awt interfaces Reviewed-by: anthony, art
jdk/src/share/classes/java/awt/KeyEventDispatcher.java
jdk/src/share/classes/java/awt/KeyEventPostProcessor.java
--- a/jdk/src/share/classes/java/awt/KeyEventDispatcher.java	Wed Oct 16 19:02:10 2013 +0400
+++ b/jdk/src/share/classes/java/awt/KeyEventDispatcher.java	Thu Oct 17 20:54:33 2013 +0400
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2000, 2001, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -51,6 +51,7 @@
  * @see KeyboardFocusManager#removeKeyEventDispatcher
  * @since 1.4
  */
+@FunctionalInterface
 public interface KeyEventDispatcher {
 
     /**
--- a/jdk/src/share/classes/java/awt/KeyEventPostProcessor.java	Wed Oct 16 19:02:10 2013 +0400
+++ b/jdk/src/share/classes/java/awt/KeyEventPostProcessor.java	Thu Oct 17 20:54:33 2013 +0400
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2001, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2001, 2013, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -54,6 +54,7 @@
  * @see KeyboardFocusManager#removeKeyEventPostProcessor
  * @since 1.4
  */
+@FunctionalInterface
 public interface KeyEventPostProcessor {
 
     /**