Skip to content

Commit ab34cce

Browse files
committed
8275186: Suppress warnings on non-serializable array component types in xml
Reviewed-by: joehw
1 parent b1b8350 commit ab34cce

File tree

6 files changed

+11
-5
lines changed

6 files changed

+11
-5
lines changed

src/java.xml/share/classes/com/sun/org/apache/bcel/internal/generic/TargetLostException.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@
5151
public final class TargetLostException extends Exception {
5252

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

5657

src/java.xml/share/classes/com/sun/org/apache/xerces/internal/impl/dv/DatatypeException.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2017, 2021, Oracle and/or its affiliates. All rights reserved.
33
*/
44
/*
55
* Licensed to the Apache Software Foundation (ASF) under one or more
@@ -35,7 +35,7 @@
3535
*
3636
* @author Sandy Gao, IBM
3737
*
38-
* @LastModified: Sep 2017
38+
* @LastModified: Oct 2021
3939
*/
4040
public class DatatypeException extends Exception {
4141

@@ -44,6 +44,7 @@ public class DatatypeException extends Exception {
4444

4545
// used to store error code and error substitution arguments
4646
protected String key;
47+
@SuppressWarnings("serial") // Array component type is not Serializable
4748
protected Object[] args;
4849

4950
/**

src/java.xml/share/classes/com/sun/org/apache/xerces/internal/impl/io/MalformedByteSequenceException.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ public class MalformedByteSequenceException extends CharConversionException {
5858
private String fKey;
5959

6060
/** replacement arguements for the error message **/
61+
@SuppressWarnings("serial") // Array component type is not Serializable
6162
private Object[] fArguments;
6263

6364
/** message text for this message, initially null **/

src/java.xml/share/classes/com/sun/org/apache/xerces/internal/impl/xs/XMLSchemaException.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ public class XMLSchemaException extends Exception {
3636

3737
// store a datatype error: error code plus the arguments
3838
String key;
39+
@SuppressWarnings("serial") // Array component type is not Serializable
3940
Object[] args;
4041

4142
// report an error

src/java.xml/share/classes/com/sun/org/apache/xerces/internal/impl/xs/traversers/XSDComplexTypeTraverser.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
* </complexType>
6363
*
6464
* @xerces.internal
65-
* @LastModified: Apr 2019
65+
* @LastModified: Oct 2021
6666
*/
6767

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

132132
private static final long serialVersionUID = 6802729912091130335L;
133133

134+
@SuppressWarnings("serial") // Array component type is not Serializable
134135
Object[] errorSubstText=null;
135136
@SuppressWarnings("serial") // Type of field is not Serializable
136137
Element errorElem = null;

src/java.xml/share/classes/com/sun/org/apache/xpath/internal/axes/UnionPathIterator.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2017, 2020, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2017, 2021, Oracle and/or its affiliates. All rights reserved.
33
*/
44
/*
55
* Licensed to the Apache Software Foundation (ASF) under one or more
@@ -39,7 +39,7 @@
3939
* As each node is iterated via nextNode(), the node is also stored
4040
* in the NodeVector, so that previousNode() can easily be done.
4141
* @xsl.usage advanced
42-
* @LastModified: May 2020
42+
* @LastModified: Oct 2021
4343
*/
4444
public class UnionPathIterator extends LocPathIterator
4545
implements Cloneable, DTMIterator, java.io.Serializable, PathComponent
@@ -470,6 +470,7 @@ public void fixupVariables(List<QName> vars, int globalsSize)
470470
* path</a> contained in the union expression.
471471
* @serial
472472
*/
473+
@SuppressWarnings("serial") // Array component type is not Serializable
473474
protected DTMIterator[] m_iterators;
474475

475476
/**

0 commit comments

Comments
 (0)