Skip to content

Commit

Permalink
Revert recent change to XmlQualifierType as this is generated code
Browse files Browse the repository at this point in the history
  • Loading branch information
luisgoncalves committed Dec 6, 2023
1 parent 339ec63 commit a2d8046
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 11 deletions.
8 changes: 1 addition & 7 deletions src/main/java/xades4j/xml/bind/xades/XmlQualifierType.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,7 @@ public enum XmlQualifierType {
@XmlEnumValue("OIDAsURI")
OID_AS_URI("OIDAsURI"),
@XmlEnumValue("OIDAsURN")
OID_AS_URN("OIDAsURN"),
@Deprecated(since="2.2.2")
@XmlEnumValue("OIDAsURI")
OIDAsURI("OIDAsURI"),
@Deprecated(since="2.2.2")
@XmlEnumValue("OIDAsURN")
OIDAsURN("OIDAsURN");
OID_AS_URN("OIDAsURN");
private final String value;

XmlQualifierType(String v) {
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/xades4j/xml/marshalling/ToXmlUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ class ToXmlUtils
{
identifierTypeConv = new EnumMap<>(IdentifierType.class);
identifierTypeConv.put(IdentifierType.OID_AS_URI, XmlQualifierType.OID_AS_URI);
identifierTypeConv.put(IdentifierType.OIDAsURI, XmlQualifierType.OID_AS_URI);
identifierTypeConv.put(IdentifierType.OID_AS_URN, XmlQualifierType.OID_AS_URN);
identifierTypeConv.put(IdentifierType.OIDAsURI, XmlQualifierType.OIDAsURI);
identifierTypeConv.put(IdentifierType.OIDAsURN, XmlQualifierType.OIDAsURN);
identifierTypeConv.put(IdentifierType.OIDAsURN, XmlQualifierType.OID_AS_URN);
}

static XmlObjectIdentifierType getXmlObjectId(ObjectIdentifier objId)
Expand Down
2 changes: 0 additions & 2 deletions src/main/java/xades4j/xml/unmarshalling/FromXmlUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,6 @@ static void createAndCertificateRefs(
identifierTypeConv.put(null, IdentifierType.URI);
identifierTypeConv.put(XmlQualifierType.OID_AS_URI, IdentifierType.OID_AS_URI);
identifierTypeConv.put(XmlQualifierType.OID_AS_URN, IdentifierType.OID_AS_URN);
identifierTypeConv.put(XmlQualifierType.OIDAsURI, IdentifierType.OIDAsURI);
identifierTypeConv.put(XmlQualifierType.OIDAsURN, IdentifierType.OIDAsURN);
}

static ObjectIdentifier getObjectIdentifier(XmlObjectIdentifierType xmlObjId)
Expand Down

0 comments on commit a2d8046

Please sign in to comment.