From dd72eca1bc767c22b7454739b193f07cd213574e Mon Sep 17 00:00:00 2001 From: Pavel Porvatov Date: Tue, 30 Aug 2011 13:07:13 +0400 Subject: [PATCH] 7080281: AbtsractButton.checkVerticalKey()/checkHorizontalKey() methods do not specify returned value Reviewed-by: alexp --- jdk/src/share/classes/javax/swing/AbstractButton.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/jdk/src/share/classes/javax/swing/AbstractButton.java b/jdk/src/share/classes/javax/swing/AbstractButton.java index 50eb66e9f8c..d95f1d4b602 100644 --- a/jdk/src/share/classes/javax/swing/AbstractButton.java +++ b/jdk/src/share/classes/javax/swing/AbstractButton.java @@ -981,6 +981,7 @@ public abstract class AbstractButton extends JComponent implements ItemSelectabl * @param exception the message to use in the * {@code IllegalArgumentException} that is thrown for an invalid * value + * @return the {@code key} argument * @exception IllegalArgumentException if key is not one of the legal * values listed above * @see #setHorizontalTextPosition @@ -1011,6 +1012,7 @@ public abstract class AbstractButton extends JComponent implements ItemSelectabl * @param exception the message to use in the * {@code IllegalArgumentException} that is thrown for an invalid * value + * @return the {@code key} argument * @exception IllegalArgumentException if key is not one of the legal * values listed above */