From 486e356fc1b07b17f2986aee5f1526ccf5bb5b0c Mon Sep 17 00:00:00 2001 From: serb Date: Thu, 17 Oct 2013 20:54:33 +0400 Subject: [PATCH] 8022657: Add FunctionalInterface annotation to awt interfaces Reviewed-by: anthony, art --- src/share/classes/java/awt/KeyEventDispatcher.java | 3 ++- src/share/classes/java/awt/KeyEventPostProcessor.java | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/share/classes/java/awt/KeyEventDispatcher.java b/src/share/classes/java/awt/KeyEventDispatcher.java index 6d2215e23..9970ac586 100644 --- a/src/share/classes/java/awt/KeyEventDispatcher.java +++ b/src/share/classes/java/awt/KeyEventDispatcher.java @@ -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 @@ import java.awt.event.KeyEvent; * @see KeyboardFocusManager#removeKeyEventDispatcher * @since 1.4 */ +@FunctionalInterface public interface KeyEventDispatcher { /** diff --git a/src/share/classes/java/awt/KeyEventPostProcessor.java b/src/share/classes/java/awt/KeyEventPostProcessor.java index 12440aa1f..5a36b9536 100644 --- a/src/share/classes/java/awt/KeyEventPostProcessor.java +++ b/src/share/classes/java/awt/KeyEventPostProcessor.java @@ -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 @@ import java.awt.event.KeyEvent; * @see KeyboardFocusManager#removeKeyEventPostProcessor * @since 1.4 */ +@FunctionalInterface public interface KeyEventPostProcessor { /** -- GitLab