8251203: Fix "no comment" warnings in java.base/java.lang and java/io

Reviewed-by: dfuchs, lancea, mchung, naoto
This commit is contained in:
Roger Riggs 2020-08-25 10:20:14 -04:00
parent 5585e6f63a
commit afce1f4ebd
19 changed files with 177 additions and 28 deletions

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) 1994, 2019, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1994, 2020, 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
@ -25,6 +25,7 @@
package java.lang;
import java.io.IOException;
import java.util.Arrays;
import jdk.internal.HotSpotIntrinsicCandidate;
@ -733,8 +734,11 @@ import jdk.internal.HotSpotIntrinsicCandidate;
};
/**
* readObject is called to restore the state of the StringBuffer from
* The {@code writeObject} method is called to write the state of the {@code StringBuffer} to
* a stream.
*
* @param s the {@code ObjectOutputStream} to which data is written
* @throws IOException if an I/O error occurs
*/
@java.io.Serial
private synchronized void writeObject(java.io.ObjectOutputStream s)
@ -753,8 +757,12 @@ import jdk.internal.HotSpotIntrinsicCandidate;
}
/**
* readObject is called to restore the state of the StringBuffer from
* The {@code readObject} method is called to restore the state of the {@code StringBuffer} from
* a stream.
*
* @param s the {@code ObjectInputStream} from which data is read
* @throws IOException if an I/O error occurs
* @throws ClassNotFoundException if a serialized class cannot be loaded
*/
@java.io.Serial
private void readObject(java.io.ObjectInputStream s)