diff options
| author | Sergey Bylokhov <serb@openjdk.org> | 2020-10-06 10:49:56 +0000 |
|---|---|---|
| committer | Sergey Bylokhov <serb@openjdk.org> | 2020-10-06 10:49:56 +0000 |
| commit | f397b60ae15a6d355ea7ebd2ab4ba5eef263df49 (patch) | |
| tree | 6d45abea53f5bfee99a53bd5bd6ad31b92f3f3be /src/java.desktop/share/classes/java/awt/CheckboxMenuItem.java | |
| parent | c9d1dcc63d3da0eb8f96e0d19336940eb11d6b92 (diff) | |
| download | openjdk-f397b60ae15a6d355ea7ebd2ab4ba5eef263df49.tar.gz openjdk-f397b60ae15a6d355ea7ebd2ab4ba5eef263df49.zip | |
8251123: doclint warnings about missing javadoc tags and comments
Reviewed-by: jdv, prr
Diffstat (limited to 'src/java.desktop/share/classes/java/awt/CheckboxMenuItem.java')
| -rw-r--r-- | src/java.desktop/share/classes/java/awt/CheckboxMenuItem.java | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/src/java.desktop/share/classes/java/awt/CheckboxMenuItem.java b/src/java.desktop/share/classes/java/awt/CheckboxMenuItem.java index c7f164cc40b..35eca6c5378 100644 --- a/src/java.desktop/share/classes/java/awt/CheckboxMenuItem.java +++ b/src/java.desktop/share/classes/java/awt/CheckboxMenuItem.java @@ -25,6 +25,7 @@ package java.awt; +import java.awt.event.ActionListener; import java.awt.event.ItemEvent; import java.awt.event.ItemListener; import java.awt.peer.CheckboxMenuItemPeer; @@ -426,8 +427,8 @@ public class CheckboxMenuItem extends MenuItem implements ItemSelectable, Access /* Serialization support. */ - /* - * Serial Data Version + /** + * Serialized data version. * @serial */ private int checkboxMenuItemSerializedDataVersion = 1; @@ -439,7 +440,8 @@ public class CheckboxMenuItem extends MenuItem implements ItemSelectable, Access * {@code ItemListeners} are detected and * no attempt is made to serialize them. * - * @param s the {@code ObjectOutputStream} to write + * @param s the {@code ObjectOutputStream} to write + * @throws IOException if an I/O error occurs * @serialData {@code null} terminated sequence of * 0 or more pairs; the pair consists of a {@code String} * and an {@code Object}; the {@code String} indicates @@ -460,17 +462,20 @@ public class CheckboxMenuItem extends MenuItem implements ItemSelectable, Access s.writeObject(null); } - /* + /** * Reads the {@code ObjectInputStream} and if it * isn't {@code null} adds a listener to receive * item events fired by the {@code Checkbox} menu item. * Unrecognized keys or values will be ignored. * - * @param s the {@code ObjectInputStream} to read + * @param s the {@code ObjectInputStream} to read + * @throws ClassNotFoundException if the class of a serialized object could + * not be found + * @throws IOException if an I/O error occurs * @serial - * @see removeActionListener() - * @see addActionListener() - * @see #writeObject + * @see #removeActionListener(ActionListener) + * @see #addActionListener(ActionListener) + * @see #writeObject(ObjectOutputStream) */ private void readObject(ObjectInputStream s) throws ClassNotFoundException, IOException |
