8275186: Suppress warnings on non-serializable array component types in xml

Reviewed-by: joehw
This commit is contained in:
Joe Darcy 2021-10-13 05:26:33 +00:00
parent b1b83500a9
commit ab34cced3b
6 changed files with 11 additions and 5 deletions

View File

@ -51,6 +51,7 @@ package com.sun.org.apache.bcel.internal.generic;
public final class TargetLostException extends Exception {
private static final long serialVersionUID = -6857272667645328384L;
@SuppressWarnings("serial") // Array component type is not Serializable
private final InstructionHandle[] targets;

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2017, 2021, Oracle and/or its affiliates. All rights reserved.
*/
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
@ -35,7 +35,7 @@ import jdk.xml.internal.SecuritySupport;
*
* @author Sandy Gao, IBM
*
* @LastModified: Sep 2017
* @LastModified: Oct 2021
*/
public class DatatypeException extends Exception {
@ -44,6 +44,7 @@ public class DatatypeException extends Exception {
// used to store error code and error substitution arguments
protected String key;
@SuppressWarnings("serial") // Array component type is not Serializable
protected Object[] args;
/**

View File

@ -58,6 +58,7 @@ public class MalformedByteSequenceException extends CharConversionException {
private String fKey;
/** replacement arguements for the error message **/
@SuppressWarnings("serial") // Array component type is not Serializable
private Object[] fArguments;
/** message text for this message, initially null **/

View File

@ -36,6 +36,7 @@ public class XMLSchemaException extends Exception {
// store a datatype error: error code plus the arguments
String key;
@SuppressWarnings("serial") // Array component type is not Serializable
Object[] args;
// report an error

View File

@ -62,7 +62,7 @@ import org.w3c.dom.Element;
* </complexType>
*
* @xerces.internal
* @LastModified: Apr 2019
* @LastModified: Oct 2021
*/
class XSDComplexTypeTraverser extends XSDAbstractParticleTraverser {
@ -131,6 +131,7 @@ class XSDComplexTypeTraverser extends XSDAbstractParticleTraverser {
private static final long serialVersionUID = 6802729912091130335L;
@SuppressWarnings("serial") // Array component type is not Serializable
Object[] errorSubstText=null;
@SuppressWarnings("serial") // Type of field is not Serializable
Element errorElem = null;

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2017, 2020, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2017, 2021, 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: May 2020
* @LastModified: Oct 2021
*/
public class UnionPathIterator extends LocPathIterator
implements Cloneable, DTMIterator, java.io.Serializable, PathComponent
@ -470,6 +470,7 @@ public class UnionPathIterator extends LocPathIterator
* path</a> contained in the union expression.
* @serial
*/
@SuppressWarnings("serial") // Array component type is not Serializable
protected DTMIterator[] m_iterators;
/**