Skip to content
Permalink
Browse files
8275186: Suppress warnings on non-serializable array component types …
…in xml

Reviewed-by: joehw
  • Loading branch information
jddarcy committed Oct 13, 2021
1 parent b1b8350 commit ab34cced3beae765fe9d6b6acfef7e6a7f3082cd
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 5 deletions.
@@ -51,6 +51,7 @@
public final class TargetLostException extends Exception {

private static final long serialVersionUID = -6857272667645328384L;
@SuppressWarnings("serial") // Array component type is not Serializable
private final InstructionHandle[] targets;


@@ -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 @@
*
* @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;

/**
@@ -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 **/
@@ -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
@@ -62,7 +62,7 @@
* </complexType>
*
* @xerces.internal
* @LastModified: Apr 2019
* @LastModified: Oct 2021
*/

class XSDComplexTypeTraverser extends XSDAbstractParticleTraverser {
@@ -131,6 +131,7 @@ private static final class ComplexTypeRecoverableError extends Exception {

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;
@@ -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 @@
* 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 void fixupVariables(List<QName> vars, int globalsSize)
* path</a> contained in the union expression.
* @serial
*/
@SuppressWarnings("serial") // Array component type is not Serializable
protected DTMIterator[] m_iterators;

/**

1 comment on commit ab34cce

@openjdk-notifier
Copy link

@openjdk-notifier openjdk-notifier bot commented on ab34cce Oct 13, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.