add missing serialversion field
Signed-off-by: Lukas Jungmann <lukas.jungmann@oracle.com>
diff --git a/jaxb-ri/bundles/core/pom.xml b/jaxb-ri/bundles/core/pom.xml
index 9a279e6..7839793 100644
--- a/jaxb-ri/bundles/core/pom.xml
+++ b/jaxb-ri/bundles/core/pom.xml
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
- Copyright (c) 2020, 2021 Oracle and/or its affiliates. All rights reserved.
+ Copyright (c) 2020, 2022 Oracle and/or its affiliates. All rights reserved.
This program and the accompanying materials are made available under the
terms of the Eclipse Distribution License v. 1.0, which is available at
diff --git a/jaxb-ri/bundles/osgi/osgi/pom.xml b/jaxb-ri/bundles/osgi/osgi/pom.xml
index c2855cb..326ee3b 100644
--- a/jaxb-ri/bundles/osgi/osgi/pom.xml
+++ b/jaxb-ri/bundles/osgi/osgi/pom.xml
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
- Copyright (c) 2013, 2021 Oracle and/or its affiliates. All rights reserved.
+ Copyright (c) 2013, 2022 Oracle and/or its affiliates. All rights reserved.
This program and the accompanying materials are made available under the
terms of the Eclipse Distribution License v. 1.0, which is available at
diff --git a/jaxb-ri/bundles/runtime/pom.xml b/jaxb-ri/bundles/runtime/pom.xml
index c11e3d0..913372d 100644
--- a/jaxb-ri/bundles/runtime/pom.xml
+++ b/jaxb-ri/bundles/runtime/pom.xml
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
- Copyright (c) 2013, 2021 Oracle and/or its affiliates. All rights reserved.
+ Copyright (c) 2013, 2022 Oracle and/or its affiliates. All rights reserved.
This program and the accompanying materials are made available under the
terms of the Eclipse Distribution License v. 1.0, which is available at
diff --git a/jaxb-ri/bundles/xjc/pom.xml b/jaxb-ri/bundles/xjc/pom.xml
index 708ab8d..73fc0ca 100644
--- a/jaxb-ri/bundles/xjc/pom.xml
+++ b/jaxb-ri/bundles/xjc/pom.xml
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
- Copyright (c) 2013, 2021 Oracle and/or its affiliates. All rights reserved.
+ Copyright (c) 2013, 2022 Oracle and/or its affiliates. All rights reserved.
This program and the accompanying materials are made available under the
terms of the Eclipse Distribution License v. 1.0, which is available at
diff --git a/jaxb-ri/codemodel/codemodel/src/test/java/com/sun/codemodel/tests/JCommentTest.java b/jaxb-ri/codemodel/codemodel/src/test/java/com/sun/codemodel/tests/JCommentTest.java
index 8f10881..b96d190 100644
--- a/jaxb-ri/codemodel/codemodel/src/test/java/com/sun/codemodel/tests/JCommentTest.java
+++ b/jaxb-ri/codemodel/codemodel/src/test/java/com/sun/codemodel/tests/JCommentTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2021 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2021, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
diff --git a/jaxb-ri/core/src/main/java/org/glassfish/jaxb/core/marshaller/XMLWriter.java b/jaxb-ri/core/src/main/java/org/glassfish/jaxb/core/marshaller/XMLWriter.java
index e7821f4..d53b125 100644
--- a/jaxb-ri/core/src/main/java/org/glassfish/jaxb/core/marshaller/XMLWriter.java
+++ b/jaxb-ri/core/src/main/java/org/glassfish/jaxb/core/marshaller/XMLWriter.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2021 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2021, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
diff --git a/jaxb-ri/core/src/test/java/org/glassfish/jaxb/core/unmarshaller/DOMScannerTest.java b/jaxb-ri/core/src/test/java/org/glassfish/jaxb/core/unmarshaller/DOMScannerTest.java
index ac6ce1e..2bf005d 100644
--- a/jaxb-ri/core/src/test/java/org/glassfish/jaxb/core/unmarshaller/DOMScannerTest.java
+++ b/jaxb-ri/core/src/test/java/org/glassfish/jaxb/core/unmarshaller/DOMScannerTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2021 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2021, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
diff --git a/jaxb-ri/external/relaxng-datatype/src/main/java/com/sun/tools/rngdatatype/DatatypeException.java b/jaxb-ri/external/relaxng-datatype/src/main/java/com/sun/tools/rngdatatype/DatatypeException.java
index 31eaab0..344d8c3 100644
--- a/jaxb-ri/external/relaxng-datatype/src/main/java/com/sun/tools/rngdatatype/DatatypeException.java
+++ b/jaxb-ri/external/relaxng-datatype/src/main/java/com/sun/tools/rngdatatype/DatatypeException.java
@@ -1,4 +1,5 @@
/*
+ * Copyright (c) 2022 Eclipse Foundation
* Copyright (c) 2005, 2010, Thai Open Source Software Center Ltd
* All rights reserved.
*
@@ -41,7 +42,9 @@
* @author <a href="mailto:kohsuke.kawaguchi@sun.com">Kohsuke KAWAGUCHI</a>
*/
public class DatatypeException extends Exception {
-
+
+ private static final long serialVersionUID = -6036466759898047370L;
+
public DatatypeException( int index, String msg ) {
super(msg);
this.index = index;
diff --git a/jaxb-ri/external/rngom/src/main/java/com/sun/tools/rngom/ast/builder/BuildException.java b/jaxb-ri/external/rngom/src/main/java/com/sun/tools/rngom/ast/builder/BuildException.java
index 2780c20..0eb42c4 100644
--- a/jaxb-ri/external/rngom/src/main/java/com/sun/tools/rngom/ast/builder/BuildException.java
+++ b/jaxb-ri/external/rngom/src/main/java/com/sun/tools/rngom/ast/builder/BuildException.java
@@ -1,4 +1,5 @@
/*
+ * Copyright (c) 2022 Eclipse Foundation
* Copyright (C) 2004-2011
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -29,6 +30,7 @@
* abort the parsing in the middle.
*/
public class BuildException extends RuntimeException {
+ private static final long serialVersionUID = -2335066797269369766L;
private final Throwable cause;
public BuildException(Throwable cause) {
if (cause == null)
diff --git a/jaxb-ri/external/rngom/src/main/java/com/sun/tools/rngom/binary/RestrictionViolationException.java b/jaxb-ri/external/rngom/src/main/java/com/sun/tools/rngom/binary/RestrictionViolationException.java
index 94cd7ab..76f4f50 100644
--- a/jaxb-ri/external/rngom/src/main/java/com/sun/tools/rngom/binary/RestrictionViolationException.java
+++ b/jaxb-ri/external/rngom/src/main/java/com/sun/tools/rngom/binary/RestrictionViolationException.java
@@ -1,4 +1,5 @@
/*
+ * Copyright (c) 2022 Eclipse Foundation
* Copyright (C) 2004-2011
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -26,6 +27,7 @@
import org.xml.sax.Locator;
final class RestrictionViolationException extends Exception {
+ private static final long serialVersionUID = -5264123170571318715L;
private String messageId;
private Locator loc;
private QName name;
diff --git a/jaxb-ri/external/rngom/src/main/java/com/sun/tools/rngom/digested/DXMLPrinter.java b/jaxb-ri/external/rngom/src/main/java/com/sun/tools/rngom/digested/DXMLPrinter.java
index 1882db7..f3ee352 100644
--- a/jaxb-ri/external/rngom/src/main/java/com/sun/tools/rngom/digested/DXMLPrinter.java
+++ b/jaxb-ri/external/rngom/src/main/java/com/sun/tools/rngom/digested/DXMLPrinter.java
@@ -1,4 +1,5 @@
/*
+ * Copyright (c) 2022 Eclipse Foundation
* Copyright (C) 2004-2011
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -129,6 +130,7 @@
}
protected class XMLWriterException extends RuntimeException {
+ private static final long serialVersionUID = -6182580269873640348L;
protected XMLWriterException(Throwable cause) {
super(cause);
}
diff --git a/jaxb-ri/external/rngom/src/main/java/com/sun/tools/rngom/nc/AnyNameClass.java b/jaxb-ri/external/rngom/src/main/java/com/sun/tools/rngom/nc/AnyNameClass.java
index a5993bf..877f78b 100644
--- a/jaxb-ri/external/rngom/src/main/java/com/sun/tools/rngom/nc/AnyNameClass.java
+++ b/jaxb-ri/external/rngom/src/main/java/com/sun/tools/rngom/nc/AnyNameClass.java
@@ -1,4 +1,5 @@
/*
+ * Copyright (c) 2022 Eclipse Foundation
* Copyright (C) 2004-2011
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -24,7 +25,9 @@
import javax.xml.namespace.QName;
final class AnyNameClass extends NameClass {
-
+
+ private static final long serialVersionUID = -5701225757278913969L;
+
protected AnyNameClass() {} // no instanciation
public boolean contains(QName name) {
diff --git a/jaxb-ri/external/rngom/src/main/java/com/sun/tools/rngom/nc/AnyNameExceptNameClass.java b/jaxb-ri/external/rngom/src/main/java/com/sun/tools/rngom/nc/AnyNameExceptNameClass.java
index fc5eb7b..7d9ede6 100644
--- a/jaxb-ri/external/rngom/src/main/java/com/sun/tools/rngom/nc/AnyNameExceptNameClass.java
+++ b/jaxb-ri/external/rngom/src/main/java/com/sun/tools/rngom/nc/AnyNameExceptNameClass.java
@@ -1,4 +1,5 @@
/*
+ * Copyright (c) 2022 Eclipse Foundation
* Copyright (C) 2004-2011
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -25,6 +26,8 @@
public class AnyNameExceptNameClass extends NameClass {
+ private static final long serialVersionUID = 641375958519870109L;
+
private final NameClass nameClass;
public AnyNameExceptNameClass(NameClass nameClass) {
diff --git a/jaxb-ri/external/rngom/src/main/java/com/sun/tools/rngom/nc/ChoiceNameClass.java b/jaxb-ri/external/rngom/src/main/java/com/sun/tools/rngom/nc/ChoiceNameClass.java
index 59f42c9..4005b91 100644
--- a/jaxb-ri/external/rngom/src/main/java/com/sun/tools/rngom/nc/ChoiceNameClass.java
+++ b/jaxb-ri/external/rngom/src/main/java/com/sun/tools/rngom/nc/ChoiceNameClass.java
@@ -1,4 +1,5 @@
/*
+ * Copyright (c) 2022 Eclipse Foundation
* Copyright (C) 2004-2011
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -25,6 +26,8 @@
public class ChoiceNameClass extends NameClass {
+ private static final long serialVersionUID = 6131402436437748085L;
+
private final NameClass nameClass1;
private final NameClass nameClass2;
diff --git a/jaxb-ri/external/rngom/src/main/java/com/sun/tools/rngom/nc/NameClass.java b/jaxb-ri/external/rngom/src/main/java/com/sun/tools/rngom/nc/NameClass.java
index 301ac44..139e5fb 100644
--- a/jaxb-ri/external/rngom/src/main/java/com/sun/tools/rngom/nc/NameClass.java
+++ b/jaxb-ri/external/rngom/src/main/java/com/sun/tools/rngom/nc/NameClass.java
@@ -1,4 +1,5 @@
/*
+ * Copyright (c) 2022 Eclipse Foundation
* Copyright (C) 2004-2015
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -32,6 +33,7 @@
* Name class is a set of {@link QName}s.
*/
public abstract class NameClass implements ParsedNameClass, Serializable {
+ private static final long serialVersionUID = -8327594277689361653L;
static final int SPECIFICITY_NONE = -1;
static final int SPECIFICITY_ANY_NAME = 0;
static final int SPECIFICITY_NS_NAME = 1;
diff --git a/jaxb-ri/external/rngom/src/main/java/com/sun/tools/rngom/nc/NsNameClass.java b/jaxb-ri/external/rngom/src/main/java/com/sun/tools/rngom/nc/NsNameClass.java
index 6477db6..23c4297 100644
--- a/jaxb-ri/external/rngom/src/main/java/com/sun/tools/rngom/nc/NsNameClass.java
+++ b/jaxb-ri/external/rngom/src/main/java/com/sun/tools/rngom/nc/NsNameClass.java
@@ -1,4 +1,5 @@
/*
+ * Copyright (c) 2022 Eclipse Foundation
* Copyright (C) 2004-2011
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -25,6 +26,8 @@
public final class NsNameClass extends NameClass {
+ private static final long serialVersionUID = -728446798893492026L;
+
private final String namespaceUri;
public NsNameClass(String namespaceUri) {
diff --git a/jaxb-ri/external/rngom/src/main/java/com/sun/tools/rngom/nc/NsNameExceptNameClass.java b/jaxb-ri/external/rngom/src/main/java/com/sun/tools/rngom/nc/NsNameExceptNameClass.java
index 72a5aa4..018fe3a 100644
--- a/jaxb-ri/external/rngom/src/main/java/com/sun/tools/rngom/nc/NsNameExceptNameClass.java
+++ b/jaxb-ri/external/rngom/src/main/java/com/sun/tools/rngom/nc/NsNameExceptNameClass.java
@@ -1,4 +1,5 @@
/*
+ * Copyright (c) 2022 Eclipse Foundation
* Copyright (C) 2004-2011
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -24,6 +25,7 @@
import javax.xml.namespace.QName;
public class NsNameExceptNameClass extends NameClass {
+ private static final long serialVersionUID = -5798429257214762521L;
private final NameClass nameClass;
private final String namespaceURI;
diff --git a/jaxb-ri/external/rngom/src/main/java/com/sun/tools/rngom/nc/NullNameClass.java b/jaxb-ri/external/rngom/src/main/java/com/sun/tools/rngom/nc/NullNameClass.java
index 666889b..d251a26 100644
--- a/jaxb-ri/external/rngom/src/main/java/com/sun/tools/rngom/nc/NullNameClass.java
+++ b/jaxb-ri/external/rngom/src/main/java/com/sun/tools/rngom/nc/NullNameClass.java
@@ -1,4 +1,5 @@
/*
+ * Copyright (c) 2022 Eclipse Foundation
* Copyright (C) 2004-2011
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -24,6 +25,7 @@
import javax.xml.namespace.QName;
final class NullNameClass extends NameClass {
+ private static final long serialVersionUID = -7477865122576300296L;
protected NullNameClass() {
}
diff --git a/jaxb-ri/external/rngom/src/main/java/com/sun/tools/rngom/nc/SimpleNameClass.java b/jaxb-ri/external/rngom/src/main/java/com/sun/tools/rngom/nc/SimpleNameClass.java
index d927984..2ed0a25 100644
--- a/jaxb-ri/external/rngom/src/main/java/com/sun/tools/rngom/nc/SimpleNameClass.java
+++ b/jaxb-ri/external/rngom/src/main/java/com/sun/tools/rngom/nc/SimpleNameClass.java
@@ -1,4 +1,5 @@
/*
+ * Copyright (c) 2022 Eclipse Foundation
* Copyright (C) 2004-2012
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -25,6 +26,8 @@
public class SimpleNameClass extends NameClass {
+ private static final long serialVersionUID = -1776408159849453340L;
+
public final QName name;
public SimpleNameClass(QName name) {
diff --git a/jaxb-ri/external/rngom/src/main/java/com/sun/tools/rngom/parse/IllegalSchemaException.java b/jaxb-ri/external/rngom/src/main/java/com/sun/tools/rngom/parse/IllegalSchemaException.java
index 40c9391..c66fde4 100644
--- a/jaxb-ri/external/rngom/src/main/java/com/sun/tools/rngom/parse/IllegalSchemaException.java
+++ b/jaxb-ri/external/rngom/src/main/java/com/sun/tools/rngom/parse/IllegalSchemaException.java
@@ -1,4 +1,5 @@
/*
+ * Copyright (c) 2022 Eclipse Foundation
* Copyright (C) 2004-2011
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -24,4 +25,6 @@
/**
* Signals a violation of the RELAX NG spec.
*/
-public class IllegalSchemaException extends Exception { }
+public class IllegalSchemaException extends Exception {
+ private static final long serialVersionUID = -848449240388007175L;
+}
diff --git a/jaxb-ri/external/rngom/src/main/java/com/sun/tools/rngom/parse/compact/CompactSyntax.java b/jaxb-ri/external/rngom/src/main/java/com/sun/tools/rngom/parse/compact/CompactSyntax.java
index d6c61f7..416f939 100644
--- a/jaxb-ri/external/rngom/src/main/java/com/sun/tools/rngom/parse/compact/CompactSyntax.java
+++ b/jaxb-ri/external/rngom/src/main/java/com/sun/tools/rngom/parse/compact/CompactSyntax.java
@@ -1,4 +1,5 @@
/*
+ * Copyright (c) 2022 Eclipse Foundation
* Copyright (C) 2004-2011
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -3191,7 +3192,9 @@
throw generateParseException();
}
- static private final class LookaheadSuccess extends java.lang.Error { }
+ static private final class LookaheadSuccess extends java.lang.Error {
+ private static final long serialVersionUID = -3695177349455626755L;
+ }
final private LookaheadSuccess jj_ls = new LookaheadSuccess();
private boolean jj_scan_token(int kind) {
if (jj_scanpos == jj_lastpos) {
diff --git a/jaxb-ri/external/rngom/src/main/java/com/sun/tools/rngom/parse/compact/EOFException.java b/jaxb-ri/external/rngom/src/main/java/com/sun/tools/rngom/parse/compact/EOFException.java
index 9daa453..5fc9bc1 100644
--- a/jaxb-ri/external/rngom/src/main/java/com/sun/tools/rngom/parse/compact/EOFException.java
+++ b/jaxb-ri/external/rngom/src/main/java/com/sun/tools/rngom/parse/compact/EOFException.java
@@ -1,4 +1,5 @@
/*
+ * Copyright (c) 2022 Eclipse Foundation
* Copyright (C) 2004-2011
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -24,4 +25,5 @@
import java.io.IOException;
public class EOFException extends IOException {
+ private static final long serialVersionUID = -2261064999719670646L;
}
diff --git a/jaxb-ri/external/rngom/src/main/java/com/sun/tools/rngom/parse/compact/EscapeSyntaxException.java b/jaxb-ri/external/rngom/src/main/java/com/sun/tools/rngom/parse/compact/EscapeSyntaxException.java
index 6978c13..9e2380f 100644
--- a/jaxb-ri/external/rngom/src/main/java/com/sun/tools/rngom/parse/compact/EscapeSyntaxException.java
+++ b/jaxb-ri/external/rngom/src/main/java/com/sun/tools/rngom/parse/compact/EscapeSyntaxException.java
@@ -1,4 +1,5 @@
/*
+ * Copyright (c) 2022 Eclipse Foundation
* Copyright (C) 2004-2011
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -22,6 +23,7 @@
package com.sun.tools.rngom.parse.compact;
class EscapeSyntaxException extends RuntimeException {
+ private static final long serialVersionUID = 3346564367583863281L;
private final String key;
private final int lineNumber;
private final int columnNumber;
diff --git a/jaxb-ri/runtime/impl/src/main/java/org/glassfish/jaxb/runtime/api/AccessorException.java b/jaxb-ri/runtime/impl/src/main/java/org/glassfish/jaxb/runtime/api/AccessorException.java
index d238ab7..62a008b 100644
--- a/jaxb-ri/runtime/impl/src/main/java/org/glassfish/jaxb/runtime/api/AccessorException.java
+++ b/jaxb-ri/runtime/impl/src/main/java/org/glassfish/jaxb/runtime/api/AccessorException.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1997, 2021 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1997, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
@@ -30,6 +30,8 @@
* @since 2.0 EA1
*/
public final class AccessorException extends Exception {
+ private static final long serialVersionUID = 3825830567556994999L;
+
public AccessorException() {
}
diff --git a/jaxb-ri/runtime/impl/src/main/java/org/glassfish/jaxb/runtime/v2/model/impl/ClassInfoImpl.java b/jaxb-ri/runtime/impl/src/main/java/org/glassfish/jaxb/runtime/v2/model/impl/ClassInfoImpl.java
index 112d900..574da81 100644
--- a/jaxb-ri/runtime/impl/src/main/java/org/glassfish/jaxb/runtime/v2/model/impl/ClassInfoImpl.java
+++ b/jaxb-ri/runtime/impl/src/main/java/org/glassfish/jaxb/runtime/v2/model/impl/ClassInfoImpl.java
@@ -421,6 +421,7 @@
* extends {@link HashMap} to save memory.
*/
private final class PropertySorter extends HashMap<String,Integer> implements Comparator<PropertyInfoImpl> {
+ private static final long serialVersionUID = 8074459976041391290L;
/**
* Mark property names that are used, so that we can report unused property names in the propOrder array.
*/
@@ -531,6 +532,7 @@
}
private static final class ConflictException extends Exception {
+ private static final long serialVersionUID = -8261248191127673032L;
final List<Annotation> annotations;
public ConflictException(List<Annotation> one) {
@@ -539,6 +541,7 @@
}
private static final class DuplicateException extends Exception {
+ private static final long serialVersionUID = -2996855754364938240L;
final Annotation a1,a2;
public DuplicateException(Annotation a1, Annotation a2) {
this.a1 = a1;
diff --git a/jaxb-ri/runtime/impl/src/main/java/org/glassfish/jaxb/runtime/v2/runtime/reflect/Lister.java b/jaxb-ri/runtime/impl/src/main/java/org/glassfish/jaxb/runtime/v2/runtime/reflect/Lister.java
index 3140b44..9c2db5f 100644
--- a/jaxb-ri/runtime/impl/src/main/java/org/glassfish/jaxb/runtime/v2/runtime/reflect/Lister.java
+++ b/jaxb-ri/runtime/impl/src/main/java/org/glassfish/jaxb/runtime/v2/runtime/reflect/Lister.java
@@ -199,6 +199,7 @@
}
public static final class Pack<ItemT> extends ArrayList<ItemT> {
+ private static final long serialVersionUID = 8543908122652908717L;
private final Class<ItemT> itemType;
public Pack(Class<ItemT> itemType) {
diff --git a/jaxb-ri/runtime/impl/src/main/java/org/glassfish/jaxb/runtime/v2/schemagen/MultiMap.java b/jaxb-ri/runtime/impl/src/main/java/org/glassfish/jaxb/runtime/v2/schemagen/MultiMap.java
index 4a81730..929aae7 100644
--- a/jaxb-ri/runtime/impl/src/main/java/org/glassfish/jaxb/runtime/v2/schemagen/MultiMap.java
+++ b/jaxb-ri/runtime/impl/src/main/java/org/glassfish/jaxb/runtime/v2/schemagen/MultiMap.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1997, 2021 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1997, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
@@ -24,6 +24,8 @@
* @author Kohsuke Kawaguchi
*/
final class MultiMap<K extends Comparable<K>,V> extends TreeMap<K,V> {
+ private static final long serialVersionUID = 236563410947519673L;
+
private final V many;
public MultiMap(V many) {
diff --git a/jaxb-ri/runtime/impl/src/main/java/org/glassfish/jaxb/runtime/v2/util/StackRecorder.java b/jaxb-ri/runtime/impl/src/main/java/org/glassfish/jaxb/runtime/v2/util/StackRecorder.java
index 763eff6..038a25e 100644
--- a/jaxb-ri/runtime/impl/src/main/java/org/glassfish/jaxb/runtime/v2/util/StackRecorder.java
+++ b/jaxb-ri/runtime/impl/src/main/java/org/glassfish/jaxb/runtime/v2/util/StackRecorder.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1997, 2021 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1997, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
@@ -16,4 +16,5 @@
* @author Kohsuke Kawaguchi
*/
public class StackRecorder extends Throwable {
+ private static final long serialVersionUID = 1296878485146023581L;
}
diff --git a/jaxb-ri/txw/compiler/src/main/resources/com/sun/tools/txw2/messages.properties b/jaxb-ri/txw/compiler/src/main/resources/com/sun/tools/txw2/messages.properties
index cc67578..0ec805a 100644
--- a/jaxb-ri/txw/compiler/src/main/resources/com/sun/tools/txw2/messages.properties
+++ b/jaxb-ri/txw/compiler/src/main/resources/com/sun/tools/txw2/messages.properties
@@ -1,5 +1,5 @@
#
-# Copyright (c) 2021 Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2021, 2022 Oracle and/or its affiliates. All rights reserved.
#
# This program and the accompanying materials are made available under the
# terms of the Eclipse Distribution License v. 1.0, which is available at
@@ -16,7 +16,8 @@
\ \ -c : The input schema is written in the RELAX NG compact syntax\n\
\ \ -x : The input schema is written in the RELAX NG XML syntax\n\
\ \ -xsd : The input schema is written in the XML SChema\n\
-\ \ -h : Generate code that allows method invocation chaining
+\ \ -h : Generate code that allows method invocation chaining\n\
+\ \ -disableXmlSecurity : disables XML security features when parsing XML documents
# Not concatenated with any other string (written on a separate line).
missingOperand = an operand is missing
diff --git a/jaxb-ri/xjc/src/main/java/com/sun/tools/xjc/Driver.java b/jaxb-ri/xjc/src/main/java/com/sun/tools/xjc/Driver.java
index 898492d..3062f26 100644
--- a/jaxb-ri/xjc/src/main/java/com/sun/tools/xjc/Driver.java
+++ b/jaxb-ri/xjc/src/main/java/com/sun/tools/xjc/Driver.java
@@ -515,7 +515,9 @@
/**
* Used to signal that we've finished processing.
*/
- private static final class WeAreDone extends BadCommandLineException {}
+ private static final class WeAreDone extends BadCommandLineException {
+ private static final long serialVersionUID = 3924802008556012395L;
+ }
/**
diff --git a/jaxb-ri/xjc/src/main/java/com/sun/tools/xjc/ModelLoader.java b/jaxb-ri/xjc/src/main/java/com/sun/tools/xjc/ModelLoader.java
index 1a58c65..c7180f6 100644
--- a/jaxb-ri/xjc/src/main/java/com/sun/tools/xjc/ModelLoader.java
+++ b/jaxb-ri/xjc/src/main/java/com/sun/tools/xjc/ModelLoader.java
@@ -406,7 +406,9 @@
}
- private static final class SpeculationFailure extends Error {}
+ private static final class SpeculationFailure extends Error {
+ private static final long serialVersionUID = 2133619153549539080L;
+ }
private static final class SpeculationChecker extends XMLFilterImpl {
@Override
diff --git a/jaxb-ri/xjc/src/main/java/com/sun/tools/xjc/model/CReferencePropertyInfo.java b/jaxb-ri/xjc/src/main/java/com/sun/tools/xjc/model/CReferencePropertyInfo.java
index 967052c..729641e 100644
--- a/jaxb-ri/xjc/src/main/java/com/sun/tools/xjc/model/CReferencePropertyInfo.java
+++ b/jaxb-ri/xjc/src/main/java/com/sun/tools/xjc/model/CReferencePropertyInfo.java
@@ -74,6 +74,7 @@
// when computing the signature
final class RefList extends LinkedHashSet<CTypeInfo> {
+ private static final long serialVersionUID = -6136978201617936640L;
RefList() {
super(elements.size());
addAll(elements);
diff --git a/jaxb-ri/xjc/src/main/java/com/sun/tools/xjc/reader/gbind/ElementSets.java b/jaxb-ri/xjc/src/main/java/com/sun/tools/xjc/reader/gbind/ElementSets.java
index 17994b4..d7f6218 100644
--- a/jaxb-ri/xjc/src/main/java/com/sun/tools/xjc/reader/gbind/ElementSets.java
+++ b/jaxb-ri/xjc/src/main/java/com/sun/tools/xjc/reader/gbind/ElementSets.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1997, 2021 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1997, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
@@ -39,6 +39,9 @@
* This isn't particularly efficient or anything, but it will do for now.
*/
private static final class MultiValueSet extends LinkedHashSet<Element> implements ElementSet {
+
+ private static final long serialVersionUID = -2635296810004496648L;
+
public MultiValueSet(ElementSet lhs, ElementSet rhs) {
addAll(lhs);
addAll(rhs);