8244342: Compilation warnings about unexpected serialization related method signatures
Reviewed-by: lancea, naoto, rriggs
This commit is contained in:
parent
fd28aad72d
commit
3eaf944203
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2007, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2007, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
*/
|
||||
/*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
@ -68,7 +68,7 @@ import jdk.xml.internal.SecuritySupport;
|
||||
* @author G. Todd Millerj
|
||||
* @author Jochen Cordes <Jochen.Cordes@t-online.de>
|
||||
* @author Santiago Pericas-Geertsen
|
||||
* @LastModified: Nov 2017
|
||||
* @LastModified: May 2020
|
||||
*/
|
||||
public final class TemplatesImpl implements Templates, Serializable {
|
||||
static final long serialVersionUID = 673094361519270707L;
|
||||
@ -295,7 +295,7 @@ public final class TemplatesImpl implements Templates, Serializable {
|
||||
* then we want it to get serialized
|
||||
*/
|
||||
private void writeObject(ObjectOutputStream os)
|
||||
throws IOException, ClassNotFoundException {
|
||||
throws IOException {
|
||||
if (_auxClasses != null) {
|
||||
//throw with the same message as when Hashtable was used for compatibility.
|
||||
throw new NotSerializableException(
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2017, 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2017, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
*/
|
||||
/*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
@ -98,7 +98,7 @@ import javax.xml.datatype.XMLGregorianCalendar;
|
||||
* @author Kohsuke Kawaguchi
|
||||
* @author Joseph Fialli
|
||||
* @see XMLGregorianCalendar#add(Duration)
|
||||
* @LastModified: June 2018
|
||||
* @LastModified: May 2020
|
||||
*/
|
||||
class DurationImpl
|
||||
extends Duration
|
||||
@ -1857,7 +1857,7 @@ class DurationImpl
|
||||
* An object that encapsulates the string
|
||||
* returned by <code>this.toString()</code>.
|
||||
*/
|
||||
private Object writeReplace() throws IOException {
|
||||
private Object writeReplace() {
|
||||
return new DurationStream(this.toString());
|
||||
}
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2017, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
*/
|
||||
/*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
@ -45,7 +45,7 @@ import com.sun.org.apache.xpath.internal.res.XPATHErrorResources;
|
||||
* the case where the LocPathIterator is "owned" by a UnionPathIterator,
|
||||
* in which case the UnionPathIterator will cache the nodes.</p>
|
||||
* @xsl.usage advanced
|
||||
* @LastModified: Nov 2017
|
||||
* @LastModified: May 2020
|
||||
*/
|
||||
public abstract class LocPathIterator extends PredicatedNodeTest
|
||||
implements Cloneable, DTMIterator, java.io.Serializable, PathComponent
|
||||
@ -134,17 +134,10 @@ public abstract class LocPathIterator extends PredicatedNodeTest
|
||||
* @throws javax.xml.transform.TransformerException
|
||||
*/
|
||||
private void readObject(java.io.ObjectInputStream stream)
|
||||
throws java.io.IOException, javax.xml.transform.TransformerException
|
||||
throws java.io.IOException, ClassNotFoundException
|
||||
{
|
||||
try
|
||||
{
|
||||
stream.defaultReadObject();
|
||||
m_clones = new IteratorPool(this);
|
||||
}
|
||||
catch (ClassNotFoundException cnfe)
|
||||
{
|
||||
throw new javax.xml.transform.TransformerException(cnfe);
|
||||
}
|
||||
stream.defaultReadObject();
|
||||
m_clones = new IteratorPool(this);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2017, 2020 Oracle and/or its affiliates. All rights reserved.
|
||||
*/
|
||||
/*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
@ -34,7 +34,7 @@ import com.sun.org.apache.xpath.internal.patterns.NodeTest;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @LastModified: Oct 2017
|
||||
* @LastModified: May 2020
|
||||
*/
|
||||
public abstract class PredicatedNodeTest extends NodeTest implements SubContextList
|
||||
{
|
||||
@ -67,26 +67,19 @@ public abstract class PredicatedNodeTest extends NodeTest implements SubContextL
|
||||
* @throws javax.xml.transform.TransformerException
|
||||
*/
|
||||
private void readObject(java.io.ObjectInputStream stream)
|
||||
throws java.io.IOException, javax.xml.transform.TransformerException
|
||||
throws java.io.IOException, ClassNotFoundException
|
||||
{
|
||||
try
|
||||
{
|
||||
stream.defaultReadObject();
|
||||
m_predicateIndex = -1;
|
||||
stream.defaultReadObject();
|
||||
m_predicateIndex = -1;
|
||||
|
||||
/**
|
||||
* Initialize to the declared value.
|
||||
* As noted at declaration, this variable is used only for clones for getLastPos,
|
||||
* it should have been excluded from serialization. For compatibility, we'll
|
||||
* keep it as is but initializing to the declared value.
|
||||
*/
|
||||
m_predCount = -1;
|
||||
resetProximityPositions();
|
||||
}
|
||||
catch (ClassNotFoundException cnfe)
|
||||
{
|
||||
throw new javax.xml.transform.TransformerException(cnfe);
|
||||
}
|
||||
/**
|
||||
* Initialize to the declared value.
|
||||
* As noted at declaration, this variable is used only for clones for getLastPos,
|
||||
* it should have been excluded from serialization. For compatibility, we'll
|
||||
* keep it as is but initializing to the declared value.
|
||||
*/
|
||||
m_predCount = -1;
|
||||
resetProximityPositions();
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2017, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
*/
|
||||
/*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
@ -39,7 +39,7 @@ import java.util.List;
|
||||
* As each node is iterated via nextNode(), the node is also stored
|
||||
* in the NodeVector, so that previousNode() can easily be done.
|
||||
* @xsl.usage advanced
|
||||
* @LastModified: Oct 2017
|
||||
* @LastModified: May 2020
|
||||
*/
|
||||
public class UnionPathIterator extends LocPathIterator
|
||||
implements Cloneable, DTMIterator, java.io.Serializable, PathComponent
|
||||
@ -258,17 +258,10 @@ public class UnionPathIterator extends LocPathIterator
|
||||
* @throws javax.xml.transform.TransformerException
|
||||
*/
|
||||
private void readObject(java.io.ObjectInputStream stream)
|
||||
throws java.io.IOException, javax.xml.transform.TransformerException
|
||||
throws java.io.IOException, ClassNotFoundException
|
||||
{
|
||||
try
|
||||
{
|
||||
stream.defaultReadObject();
|
||||
m_clones = new IteratorPool(this);
|
||||
}
|
||||
catch (ClassNotFoundException cnfe)
|
||||
{
|
||||
throw new javax.xml.transform.TransformerException(cnfe);
|
||||
}
|
||||
stream.defaultReadObject();
|
||||
m_clones = new IteratorPool(this);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user