OpenJDK / portola / portola
changeset 21264:b6c4288ebb92
8022657: Add FunctionalInterface annotation to awt interfaces
Reviewed-by: anthony, art
author | serb |
---|---|
date | Thu, 17 Oct 2013 20:54:33 +0400 |
parents | 77142152d60f |
children | d037a0675f8d |
files | jdk/src/share/classes/java/awt/KeyEventDispatcher.java jdk/src/share/classes/java/awt/KeyEventPostProcessor.java |
diffstat | 2 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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 { /**