Skip to content

Commit 3f0c137

Browse files
committed
8347123: Add missing @serial tags to other modules
Reviewed-by: prr, nbenalla, alanb
1 parent 8b2aa51 commit 3f0c137

File tree

39 files changed

+104
-59
lines changed

39 files changed

+104
-59
lines changed

src/java.datatransfer/share/classes/java/awt/datatransfer/DataFlavor.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 1996, 2024, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 1996, 2025, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -1286,6 +1286,9 @@ public boolean isFlavorTextType() {
12861286

12871287
/**
12881288
* Serializes this {@code DataFlavor}.
1289+
*
1290+
* @serialData The {@code mimeType} field with the {@code humanPresentableName} parameter set,
1291+
* followed by the {@code representationClass} field
12891292
*/
12901293
public synchronized void writeExternal(ObjectOutput os) throws IOException {
12911294
if (mimeType != null) {

src/java.management/share/classes/javax/management/ImmutableDescriptor.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2004, 2022, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2004, 2025, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -42,13 +42,13 @@ public class ImmutableDescriptor implements Descriptor {
4242
private static final long serialVersionUID = 8853308591080540165L;
4343

4444
/**
45-
* The names of the fields in this ImmutableDescriptor with their
45+
* @serial The names of the fields in this ImmutableDescriptor with their
4646
* original case. The names must be in alphabetical order as determined
4747
* by {@link String#CASE_INSENSITIVE_ORDER}.
4848
*/
4949
private final String[] names;
5050
/**
51-
* The values of the fields in this ImmutableDescriptor. The
51+
* @serial The values of the fields in this ImmutableDescriptor. The
5252
* elements in this array match the corresponding elements in the
5353
* {@code names} array.
5454
*/

src/java.management/share/classes/javax/management/MBeanPermission.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ public class MBeanPermission extends Permission {
222222
UnregisterMBean;
223223

224224
/**
225-
* The actions string.
225+
* @serial The actions string.
226226
*/
227227
private String actions;
228228

src/java.management/share/classes/javax/management/remote/JMXServiceURL.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2002, 2015, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2002, 2025, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -758,22 +758,22 @@ private static int indexOfFirstNotInSet(String s, BitSet set,
758758
}
759759

760760
/**
761-
* The value returned by {@link #getProtocol()}.
761+
* @serial The value returned by {@link #getProtocol()}.
762762
*/
763763
private String protocol;
764764

765765
/**
766-
* The value returned by {@link #getHost()}.
766+
* @serial The value returned by {@link #getHost()}.
767767
*/
768768
private String host;
769769

770770
/**
771-
* The value returned by {@link #getPort()}.
771+
* @serial The value returned by {@link #getPort()}.
772772
*/
773773
private int port;
774774

775775
/**
776-
* The value returned by {@link #getURLPath()}.
776+
* @serial The value returned by {@link #getURLPath()}.
777777
*/
778778
private String urlPath;
779779

src/java.management/share/classes/javax/management/remote/NotificationResult.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2003, 2025, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -148,8 +148,11 @@ private void readObject(ObjectInputStream ois) throws IOException, ClassNotFound
148148
}
149149
}
150150

151+
/** @serial */
151152
private long earliestSequenceNumber;
153+
/** @serial */
152154
private long nextSequenceNumber;
155+
/** @serial */
153156
private TargetedNotification[] targetedNotifications;
154157

155158
private static void validate(TargetedNotification[] targetedNotifications,

src/java.scripting/share/classes/javax/script/ScriptException.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2005, 2011, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2005, 2025, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -38,8 +38,11 @@ public class ScriptException extends Exception {
3838

3939
private static final long serialVersionUID = 8265071037049225001L;
4040

41+
/** @serial */
4142
private final String fileName;
43+
/** @serial */
4244
private final int lineNumber;
45+
/** @serial */
4346
private final int columnNumber;
4447

4548
/**

src/java.security.jgss/share/classes/javax/security/auth/kerberos/KerberosTicket.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2000, 2024, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2000, 2025, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -187,7 +187,7 @@ public class KerberosTicket implements Destroyable, Refreshable,
187187
private InetAddress[] clientAddresses;
188188

189189
/**
190-
* Evidence ticket if proxy_impersonator. This field can be accessed
190+
* @serial Evidence ticket if proxy_impersonator. This field can be accessed
191191
* by KerberosSecrets. It's serialized.
192192
*/
193193
KerberosTicket proxy = null;

src/java.smartcardio/share/classes/javax/smartcardio/ATR.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2005, 2006, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2005, 2025, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -46,6 +46,7 @@ public final class ATR implements java.io.Serializable {
4646

4747
private static final long serialVersionUID = 6695383790847736493L;
4848

49+
/** @serial */
4950
private byte[] atr;
5051

5152
private transient int startHistorical, nHistorical;

src/java.sql.rowset/share/classes/javax/sql/rowset/serial/SerialBlob.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2003, 2021, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2003, 2025, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -70,7 +70,7 @@ public class SerialBlob implements Blob, Serializable, Cloneable {
7070
private byte[] buf;
7171

7272
/**
73-
* The internal representation of the <code>Blob</code> object on which this
73+
* @serial The internal representation of the <code>Blob</code> object on which this
7474
* <code>SerialBlob</code> object is based.
7575
*/
7676
@SuppressWarnings("serial") // Not statically typed as Serializable; checked in writeObject

src/java.sql.rowset/share/classes/javax/sql/rowset/serial/SerialClob.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2003, 2022, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2003, 2025, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -65,7 +65,7 @@ public class SerialClob implements Clob, Serializable, Cloneable {
6565
private char buf[];
6666

6767
/**
68-
* Internal Clob representation if SerialClob is initialized with a
68+
* @serial Internal Clob representation if SerialClob is initialized with a
6969
* Clob. Null if SerialClob is initialized with a char[].
7070
*/
7171
@SuppressWarnings("serial") // Not statically typed as Serializable; checked in writeObject

0 commit comments

Comments
 (0)