diff --git a/jaxb-ri/xjc/src/main/java/com/sun/tools/xjc/reader/xmlschema/bindinfo/BIGlobalBinding.java b/jaxb-ri/xjc/src/main/java/com/sun/tools/xjc/reader/xmlschema/bindinfo/BIGlobalBinding.java index 3d600b00d..fa9209204 100644 --- a/jaxb-ri/xjc/src/main/java/com/sun/tools/xjc/reader/xmlschema/bindinfo/BIGlobalBinding.java +++ b/jaxb-ri/xjc/src/main/java/com/sun/tools/xjc/reader/xmlschema/bindinfo/BIGlobalBinding.java @@ -534,7 +534,6 @@ public boolean isEqual(BIGlobalBinding b) { this.fixedAttributeAsConstantProperty == b.fixedAttributeAsConstantProperty && this.generateEnumMemberName == b.generateEnumMemberName && this.codeGenerationStrategy == b.codeGenerationStrategy && - this.serializable == b.serializable && this.superClass == b.superClass && this.superInterface == b.superInterface && this.generateElementClass == b.generateElementClass && @@ -552,6 +551,7 @@ public boolean isEqual(BIGlobalBinding b) { isEqual(this.noUnmarshaller, b.noUnmarshaller) && isEqual(this.noValidator, b.noValidator) && isEqual(this.noValidatingUnmarshaller, b.noValidatingUnmarshaller) && + isEqual(this.serializable, b.serializable) && isEqual(this.typeSubstitution, b.typeSubstitution) && isEqual(this.simpleMode, b.simpleMode) && isEqual(this.enumBaseTypes, b.enumBaseTypes) && diff --git a/jaxb-ri/xjc/src/main/java/com/sun/tools/xjc/reader/xmlschema/bindinfo/BISerializable.java b/jaxb-ri/xjc/src/main/java/com/sun/tools/xjc/reader/xmlschema/bindinfo/BISerializable.java index ca222c126..d6239b67c 100644 --- a/jaxb-ri/xjc/src/main/java/com/sun/tools/xjc/reader/xmlschema/bindinfo/BISerializable.java +++ b/jaxb-ri/xjc/src/main/java/com/sun/tools/xjc/reader/xmlschema/bindinfo/BISerializable.java @@ -11,6 +11,7 @@ package com.sun.tools.xjc.reader.xmlschema.bindinfo; import jakarta.xml.bind.annotation.XmlAttribute; +import java.util.Objects; /** @@ -26,4 +27,17 @@ public final class BISerializable { /** serial version UID, or null to avoid generating the serialVersionUID field. */ @XmlAttribute public Long uid; + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + BISerializable that = (BISerializable) o; + return Objects.equals(uid, that.uid); + } + + @Override + public int hashCode() { + return Objects.hash(uid); + } }