changeset 10473:70242d821c66

8022657: Add FunctionalInterface annotation to awt interfaces Reviewed-by: anthony, art
author serb
date Thu, 17 Oct 2013 20:54:33 +0400
parents 229b10e97bd2
children 3c2d4569a6a3
files src/share/classes/java/awt/KeyEventDispatcher.java src/share/classes/java/awt/KeyEventPostProcessor.java
diffstat 2 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/java/awt/KeyEventDispatcher.java	Wed Oct 16 19:02:10 2013 +0400
+++ b/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/src/share/classes/java/awt/KeyEventPostProcessor.java	Wed Oct 16 19:02:10 2013 +0400
+++ b/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 {
 
     /**