8229999: Apply java.io.Serial annotations to security types in java.base

Reviewed-by: rriggs, mullan
This commit is contained in:
Joe Darcy 2019-08-29 10:52:21 -07:00
parent 470d32df73
commit 6d4ef5aaf3
158 changed files with 377 additions and 141 deletions

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) 1997, 2017, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1997, 2019, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -50,6 +50,7 @@ import sun.security.util.IOUtils;
public class CodeSource implements java.io.Serializable {
@java.io.Serial
private static final long serialVersionUID = 4977541819976013951L;
/**
@ -522,6 +523,7 @@ public class CodeSource implements java.io.Serializable {
* array of bytes. Finally, if any code signers are present then the array
* of code signers is serialized and written out too.
*/
@java.io.Serial
private void writeObject(java.io.ObjectOutputStream oos)
throws IOException
{
@ -556,6 +558,7 @@ public class CodeSource implements java.io.Serializable {
/**
* Restores this object from a stream (i.e., deserializes it).
*/
@java.io.Serial
private void readObject(java.io.ObjectInputStream ois)
throws IOException, ClassNotFoundException
{