8208060: Additional corrections of serial-related declarations
Reviewed-by: rriggs, lancea
This commit is contained in:
parent
9959e34180
commit
07cb147927
src
java.base/share/classes/java/net
java.management/share/classes/java/lang/management
java.rmi/share/classes/java/rmi
java.sql.rowset/share/classes/javax/sql/rowset/serial
java.sql/share/classes/java/sql
@ -1709,8 +1709,7 @@ class InetAddress implements java.io.Serializable {
|
||||
return (InetAddressImpl) impl;
|
||||
}
|
||||
|
||||
private void readObjectNoData () throws
|
||||
IOException, ClassNotFoundException {
|
||||
private void readObjectNoData () {
|
||||
if (getClass().getClassLoader() != null) {
|
||||
throw new SecurityException ("invalid address type");
|
||||
}
|
||||
|
@ -68,6 +68,4 @@ public enum MemoryType {
|
||||
public String toString() {
|
||||
return description;
|
||||
}
|
||||
|
||||
private static final long serialVersionUID = 6992337162326171013L;
|
||||
}
|
||||
|
@ -225,7 +225,7 @@ public class ActivationID implements Serializable {
|
||||
* specification.
|
||||
**/
|
||||
private void writeObject(ObjectOutputStream out)
|
||||
throws IOException, ClassNotFoundException
|
||||
throws IOException
|
||||
{
|
||||
out.writeObject(uid);
|
||||
|
||||
|
@ -359,7 +359,7 @@ public abstract class RemoteObject implements Remote, java.io.Serializable {
|
||||
* <code>readExternal</code> method.
|
||||
*/
|
||||
private void writeObject(java.io.ObjectOutputStream out)
|
||||
throws java.io.IOException, java.lang.ClassNotFoundException
|
||||
throws java.io.IOException
|
||||
{
|
||||
if (ref == null) {
|
||||
throw new java.rmi.MarshalException("Invalid remote object");
|
||||
|
@ -629,7 +629,7 @@ public class SerialArray implements Array, Serializable, Cloneable {
|
||||
* to a stream.
|
||||
*/
|
||||
private void writeObject(ObjectOutputStream s)
|
||||
throws IOException, ClassNotFoundException {
|
||||
throws IOException {
|
||||
|
||||
ObjectOutputStream.PutField fields = s.putFields();
|
||||
fields.put("elements", elements);
|
||||
|
@ -570,7 +570,7 @@ public class SerialBlob implements Blob, Serializable, Cloneable {
|
||||
* to a stream.
|
||||
*/
|
||||
private void writeObject(ObjectOutputStream s)
|
||||
throws IOException, ClassNotFoundException {
|
||||
throws IOException {
|
||||
|
||||
ObjectOutputStream.PutField fields = s.putFields();
|
||||
fields.put("buf", buf);
|
||||
|
@ -237,7 +237,7 @@ public class SerialRef implements Ref, Serializable, Cloneable {
|
||||
* to a stream.
|
||||
*/
|
||||
private void writeObject(ObjectOutputStream s)
|
||||
throws IOException, ClassNotFoundException {
|
||||
throws IOException {
|
||||
|
||||
ObjectOutputStream.PutField fields = s.putFields();
|
||||
fields.put("baseTypeName", baseTypeName);
|
||||
|
@ -332,7 +332,7 @@ public class SerialStruct implements Struct, Serializable, Cloneable {
|
||||
* to a stream.
|
||||
*/
|
||||
private void writeObject(ObjectOutputStream s)
|
||||
throws IOException, ClassNotFoundException {
|
||||
throws IOException {
|
||||
|
||||
ObjectOutputStream.PutField fields = s.putFields();
|
||||
fields.put("attribs", attribs);
|
||||
|
@ -553,7 +553,7 @@ public class BatchUpdateException extends SQLException {
|
||||
* to a stream.
|
||||
*/
|
||||
private void writeObject(ObjectOutputStream s)
|
||||
throws IOException, ClassNotFoundException {
|
||||
throws IOException {
|
||||
|
||||
ObjectOutputStream.PutField fields = s.putFields();
|
||||
fields.put("updateCounts", updateCounts);
|
||||
|
Loading…
x
Reference in New Issue
Block a user