From 82396c2a26f207479b3ccfcb2c51852b22013abd Mon Sep 17 00:00:00 2001 From: Michael Koch Date: Thu, 7 Nov 2002 13:01:34 +0000 Subject: [PATCH] Choice.java, [...]: Fixed documentation. 2002-11-07 Michael Koch * java/awt/Choice.java, java/awt/Container.java, java/awt/GridBagLayout.java: Fixed documentation. * java/awt/peer/ContainerPeer.java: Reindented. From-SVN: r58888 --- libjava/ChangeLog | 9 +++++++++ libjava/java/awt/Choice.java | 6 +++--- libjava/java/awt/Container.java | 6 +++--- libjava/java/awt/GridBagLayout.java | 2 +- libjava/java/awt/peer/ContainerPeer.java | 11 ++++------- 5 files changed, 20 insertions(+), 14 deletions(-) diff --git a/libjava/ChangeLog b/libjava/ChangeLog index 5ebd6f8423b..a37e5bda4fa 100644 --- a/libjava/ChangeLog +++ b/libjava/ChangeLog @@ -1,3 +1,12 @@ +2002-11-07 Michael Koch + + * java/awt/Choice.java, + java/awt/Container.java, + java/awt/GridBagLayout.java: + Fixed documentation. + * java/awt/peer/ContainerPeer.java: + Reindented. + 2002-11-07 Michael Koch * java/awt/color/ICC_Profile.java: diff --git a/libjava/java/awt/Choice.java b/libjava/java/awt/Choice.java index ab04c21cda5..81a2a31c932 100644 --- a/libjava/java/awt/Choice.java +++ b/libjava/java/awt/Choice.java @@ -215,7 +215,7 @@ insert(String item, int index) * * @param item The item to remove. * - * @param IllegalArgumentException If the specified item doesn't exist. + * @exception IllegalArgumentException If the specified item doesn't exist. */ public synchronized void remove(String item) @@ -234,7 +234,7 @@ remove(String item) * * @param index The index of the item to remove. * - * @exception ArrayIndexOutOfBoundsException If the index is not valid. + * @exception IndexOutOfBoundsException If the index is not valid. */ public synchronized void remove(int index) @@ -325,7 +325,7 @@ getSelectedIndex() * * @param index The index of the row to make selected. * - * @param IllegalArgumentException If the specified index is invalid. + * @exception IllegalArgumentException If the specified index is invalid. */ public synchronized void select(int index) diff --git a/libjava/java/awt/Container.java b/libjava/java/awt/Container.java index c5c7c245606..d71a4bf3684 100644 --- a/libjava/java/awt/Container.java +++ b/libjava/java/awt/Container.java @@ -205,7 +205,7 @@ public class Container extends Component * * @return The same component that was added. * - * @param throws ArrayIndexOutOfBounds If the specified index is invalid. + * @throws ArrayIndexOutOfBounds If the specified index is invalid. */ public Component add(Component comp, int index) { @@ -236,7 +236,7 @@ public class Container extends Component * @param index The index in the component list to insert this child * at, or -1 to add at the end of the list. * - * @param throws ArrayIndexOutOfBounds If the specified index is invalid. + * @throws ArrayIndexOutOfBounds If the specified index is invalid. */ public void add(Component comp, Object constraints, int index) { @@ -256,7 +256,7 @@ public class Container extends Component * @param index The index in the component list to insert this child * at, or -1 to add at the end of the list. * - * @param throws ArrayIndexOutOfBounds If the specified index is invalid. + * @throws ArrayIndexOutOfBounds If the specified index is invalid. */ protected void addImpl(Component comp, Object constraints, int index) { diff --git a/libjava/java/awt/GridBagLayout.java b/libjava/java/awt/GridBagLayout.java index e93d6b1828c..91b5abd3282 100644 --- a/libjava/java/awt/GridBagLayout.java +++ b/libjava/java/awt/GridBagLayout.java @@ -40,7 +40,7 @@ package java.awt; import java.io.Serializable; /** - * Stub implementeation. + * Stub implementation. */ public class GridBagLayout implements Serializable, LayoutManager2 diff --git a/libjava/java/awt/peer/ContainerPeer.java b/libjava/java/awt/peer/ContainerPeer.java index 929dfea14a9..23a8746a7b1 100644 --- a/libjava/java/awt/peer/ContainerPeer.java +++ b/libjava/java/awt/peer/ContainerPeer.java @@ -35,18 +35,15 @@ this exception to your version of the library, but you are not obligated to do so. If you do not wish to do so, delete this exception statement from your version. */ - package java.awt.peer; import java.awt.Insets; public interface ContainerPeer extends ComponentPeer { - -public abstract Insets insets(); -public abstract Insets getInsets(); -public abstract void beginValidate(); -public abstract void endValidate(); - + public abstract Insets insets(); + public abstract Insets getInsets(); + public abstract void beginValidate(); + public abstract void endValidate(); } // interface ContainerPeer -- 2.30.2