8284613: invalid use of @serial tag

Reviewed-by: prr
This commit is contained in:
Alisen Chung 2022-05-08 21:22:08 +00:00 committed by Phil Race
parent 9583e3657e
commit cdd1b0da14
12 changed files with 10 additions and 12 deletions

View file

@ -108,7 +108,7 @@ public class Applet extends Panel {
* @throws IOException if an I/O error occurs * @throws IOException if an I/O error occurs
* @throws HeadlessException if {@code GraphicsEnvironment.isHeadless()} * @throws HeadlessException if {@code GraphicsEnvironment.isHeadless()}
* returns {@code true} * returns {@code true}
* @serial *
* @see java.awt.GraphicsEnvironment#isHeadless * @see java.awt.GraphicsEnvironment#isHeadless
* @since 1.4 * @since 1.4
*/ */

View file

@ -484,7 +484,7 @@ public class Button extends Component implements Accessible {
* @throws IOException if an I/O error occurs * @throws IOException if an I/O error occurs
* @throws HeadlessException if {@code GraphicsEnvironment.isHeadless()} * @throws HeadlessException if {@code GraphicsEnvironment.isHeadless()}
* returns {@code true} * returns {@code true}
* @serial *
* @see #removeActionListener(ActionListener) * @see #removeActionListener(ActionListener)
* @see #addActionListener(ActionListener) * @see #addActionListener(ActionListener)
* @see java.awt.GraphicsEnvironment#isHeadless * @see java.awt.GraphicsEnvironment#isHeadless

View file

@ -660,7 +660,7 @@ public class Checkbox extends Component implements ItemSelectable, Accessible {
* @throws IOException if an I/O error occurs * @throws IOException if an I/O error occurs
* @throws HeadlessException if {@code GraphicsEnvironment.isHeadless()} * @throws HeadlessException if {@code GraphicsEnvironment.isHeadless()}
* returns {@code true} * returns {@code true}
* @serial *
* @see #removeItemListener(ItemListener) * @see #removeItemListener(ItemListener)
* @see #addItemListener(ItemListener) * @see #addItemListener(ItemListener)
* @see java.awt.GraphicsEnvironment#isHeadless * @see java.awt.GraphicsEnvironment#isHeadless

View file

@ -475,7 +475,7 @@ public class CheckboxMenuItem extends MenuItem implements ItemSelectable, Access
* @throws ClassNotFoundException if the class of a serialized object could * @throws ClassNotFoundException if the class of a serialized object could
* not be found * not be found
* @throws IOException if an I/O error occurs * @throws IOException if an I/O error occurs
* @serial *
* @see #removeActionListener(ActionListener) * @see #removeActionListener(ActionListener)
* @see #addActionListener(ActionListener) * @see #addActionListener(ActionListener)
* @see #writeObject(ObjectOutputStream) * @see #writeObject(ObjectOutputStream)

View file

@ -708,7 +708,7 @@ public class Choice extends Component implements ItemSelectable, Accessible {
* @throws IOException if an I/O error occurs * @throws IOException if an I/O error occurs
* @throws HeadlessException if {@code GraphicsEnvironment.isHeadless()} * @throws HeadlessException if {@code GraphicsEnvironment.isHeadless()}
* returns {@code true} * returns {@code true}
* @serial *
* @see #removeItemListener(ItemListener) * @see #removeItemListener(ItemListener)
* @see #addItemListener(ItemListener) * @see #addItemListener(ItemListener)
* @see java.awt.GraphicsEnvironment#isHeadless * @see java.awt.GraphicsEnvironment#isHeadless

View file

@ -3723,7 +3723,7 @@ public class Container extends Component {
* @throws ClassNotFoundException if the class of a serialized object could * @throws ClassNotFoundException if the class of a serialized object could
* not be found * not be found
* @throws IOException if an I/O error occurs * @throws IOException if an I/O error occurs
* @serial *
* @see #addContainerListener * @see #addContainerListener
* @see #writeObject(ObjectOutputStream) * @see #writeObject(ObjectOutputStream)
*/ */

View file

@ -1941,7 +1941,7 @@ public class Font implements java.io.Serializable
* @throws ClassNotFoundException if the class of a serialized object could * @throws ClassNotFoundException if the class of a serialized object could
* not be found * not be found
* @throws IOException if an I/O error occurs * @throws IOException if an I/O error occurs
* @serial *
* @see #writeObject(java.io.ObjectOutputStream) * @see #writeObject(java.io.ObjectOutputStream)
*/ */
@Serial @Serial

View file

@ -166,7 +166,7 @@ public class Label extends Component implements Accessible {
* @throws IOException if an I/O error occurs * @throws IOException if an I/O error occurs
* @throws HeadlessException if {@code GraphicsEnvironment.isHeadless()} * @throws HeadlessException if {@code GraphicsEnvironment.isHeadless()}
* returns {@code true} * returns {@code true}
* @serial *
* @see java.awt.GraphicsEnvironment#isHeadless * @see java.awt.GraphicsEnvironment#isHeadless
* @since 1.4 * @since 1.4
*/ */

View file

@ -447,7 +447,7 @@ public abstract class MenuComponent implements java.io.Serializable {
* @throws IOException if an I/O error occurs * @throws IOException if an I/O error occurs
* @throws HeadlessException if {@code GraphicsEnvironment.isHeadless()} * @throws HeadlessException if {@code GraphicsEnvironment.isHeadless()}
* returns {@code true} * returns {@code true}
* @serial *
* @see java.awt.GraphicsEnvironment#isHeadless * @see java.awt.GraphicsEnvironment#isHeadless
*/ */
@SuppressWarnings("removal") @SuppressWarnings("removal")

View file

@ -386,7 +386,7 @@ public class FocusEvent extends ComponentEvent {
* @return a newly created object from deserialized data * @return a newly created object from deserialized data
* @throws ObjectStreamException if a new object replacing this object could * @throws ObjectStreamException if a new object replacing this object could
* not be created * not be created
* @serial *
* @see #cause * @see #cause
* @since 9 * @since 9
*/ */

View file

@ -2006,7 +2006,6 @@ public non-sealed class KeyEvent extends InputEvent {
* @throws ClassNotFoundException if the class of a serialized object could * @throws ClassNotFoundException if the class of a serialized object could
* not be found * not be found
* @throws IOException if an I/O error occurs * @throws IOException if an I/O error occurs
* @serial
*/ */
@Serial @Serial
@SuppressWarnings("deprecation") @SuppressWarnings("deprecation")

View file

@ -1194,7 +1194,6 @@ public non-sealed class MouseEvent extends InputEvent {
* @throws ClassNotFoundException if the class of a serialized object could * @throws ClassNotFoundException if the class of a serialized object could
* not be found * not be found
* @throws IOException if an I/O error occurs * @throws IOException if an I/O error occurs
* @serial
*/ */
@Serial @Serial
@SuppressWarnings("deprecation") @SuppressWarnings("deprecation")