mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 23:04:50 +02:00
8229997: Apply java.io.Serial annotations in java.base
Reviewed-by: alanb, rriggs
This commit is contained in:
parent
6d064a747e
commit
9d764ee48e
315 changed files with 880 additions and 254 deletions
|
@ -89,6 +89,7 @@ class Inet4Address extends InetAddress {
|
|||
/** use serialVersionUID from InetAddress, but Inet4Address instance
|
||||
* is always replaced by an InetAddress instance before being
|
||||
* serialized */
|
||||
@java.io.Serial
|
||||
private static final long serialVersionUID = 3286316764910316507L;
|
||||
|
||||
/*
|
||||
|
@ -134,6 +135,7 @@ class Inet4Address extends InetAddress {
|
|||
* @throws ObjectStreamException if a new object replacing this
|
||||
* object could not be created
|
||||
*/
|
||||
@java.io.Serial
|
||||
private Object writeReplace() throws ObjectStreamException {
|
||||
// will replace the to be serialized 'this' object
|
||||
InetAddress inet = new InetAddress();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue