Skip to content

Commit

Permalink
8284613: invalid use of @serial tag
Browse files Browse the repository at this point in the history
Reviewed-by: prr
  • Loading branch information
Alisen Chung authored and prrace committed May 8, 2022
1 parent 9583e36 commit cdd1b0d
Show file tree
Hide file tree
Showing 12 changed files with 10 additions and 12 deletions.
2 changes: 1 addition & 1 deletion src/java.desktop/share/classes/java/applet/Applet.java
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public Applet() throws HeadlessException {
* @throws IOException if an I/O error occurs
* @throws HeadlessException if {@code GraphicsEnvironment.isHeadless()}
* returns {@code true}
* @serial
*
* @see java.awt.GraphicsEnvironment#isHeadless
* @since 1.4
*/
Expand Down
2 changes: 1 addition & 1 deletion src/java.desktop/share/classes/java/awt/Button.java
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,7 @@ private void writeObject(ObjectOutputStream s)
* @throws IOException if an I/O error occurs
* @throws HeadlessException if {@code GraphicsEnvironment.isHeadless()}
* returns {@code true}
* @serial
*
* @see #removeActionListener(ActionListener)
* @see #addActionListener(ActionListener)
* @see java.awt.GraphicsEnvironment#isHeadless
Expand Down
2 changes: 1 addition & 1 deletion src/java.desktop/share/classes/java/awt/Checkbox.java
Original file line number Diff line number Diff line change
Expand Up @@ -660,7 +660,7 @@ private void writeObject(ObjectOutputStream s)
* @throws IOException if an I/O error occurs
* @throws HeadlessException if {@code GraphicsEnvironment.isHeadless()}
* returns {@code true}
* @serial
*
* @see #removeItemListener(ItemListener)
* @see #addItemListener(ItemListener)
* @see java.awt.GraphicsEnvironment#isHeadless
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,7 @@ private void writeObject(ObjectOutputStream s)
* @throws ClassNotFoundException if the class of a serialized object could
* not be found
* @throws IOException if an I/O error occurs
* @serial
*
* @see #removeActionListener(ActionListener)
* @see #addActionListener(ActionListener)
* @see #writeObject(ObjectOutputStream)
Expand Down
2 changes: 1 addition & 1 deletion src/java.desktop/share/classes/java/awt/Choice.java
Original file line number Diff line number Diff line change
Expand Up @@ -708,7 +708,7 @@ private void writeObject(ObjectOutputStream s)
* @throws IOException if an I/O error occurs
* @throws HeadlessException if {@code GraphicsEnvironment.isHeadless()}
* returns {@code true}
* @serial
*
* @see #removeItemListener(ItemListener)
* @see #addItemListener(ItemListener)
* @see java.awt.GraphicsEnvironment#isHeadless
Expand Down
2 changes: 1 addition & 1 deletion src/java.desktop/share/classes/java/awt/Container.java
Original file line number Diff line number Diff line change
Expand Up @@ -3723,7 +3723,7 @@ private void writeObject(ObjectOutputStream s) throws IOException {
* @throws ClassNotFoundException if the class of a serialized object could
* not be found
* @throws IOException if an I/O error occurs
* @serial
*
* @see #addContainerListener
* @see #writeObject(ObjectOutputStream)
*/
Expand Down
2 changes: 1 addition & 1 deletion src/java.desktop/share/classes/java/awt/Font.java
Original file line number Diff line number Diff line change
Expand Up @@ -1941,7 +1941,7 @@ private void writeObject(java.io.ObjectOutputStream s)
* @throws ClassNotFoundException if the class of a serialized object could
* not be found
* @throws IOException if an I/O error occurs
* @serial
*
* @see #writeObject(java.io.ObjectOutputStream)
*/
@Serial
Expand Down
2 changes: 1 addition & 1 deletion src/java.desktop/share/classes/java/awt/Label.java
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ public Label(String text, int alignment) throws HeadlessException {
* @throws IOException if an I/O error occurs
* @throws HeadlessException if {@code GraphicsEnvironment.isHeadless()}
* returns {@code true}
* @serial
*
* @see java.awt.GraphicsEnvironment#isHeadless
* @since 1.4
*/
Expand Down
2 changes: 1 addition & 1 deletion src/java.desktop/share/classes/java/awt/MenuComponent.java
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,7 @@ protected final Object getTreeLock() {
* @throws IOException if an I/O error occurs
* @throws HeadlessException if {@code GraphicsEnvironment.isHeadless()}
* returns {@code true}
* @serial
*
* @see java.awt.GraphicsEnvironment#isHeadless
*/
@SuppressWarnings("removal")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ public final Cause getCause() {
* @return a newly created object from deserialized data
* @throws ObjectStreamException if a new object replacing this object could
* not be created
* @serial
*
* @see #cause
* @since 9
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2006,7 +2006,6 @@ private void setOldModifiers() {
* @throws ClassNotFoundException if the class of a serialized object could
* not be found
* @throws IOException if an I/O error occurs
* @serial
*/
@Serial
@SuppressWarnings("deprecation")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1194,7 +1194,6 @@ private void setOldModifiers() {
* @throws ClassNotFoundException if the class of a serialized object could
* not be found
* @throws IOException if an I/O error occurs
* @serial
*/
@Serial
@SuppressWarnings("deprecation")
Expand Down

1 comment on commit cdd1b0d

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.