Skip to content

Commit

Permalink
Remove JAXB annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
mr-zepol committed Aug 22, 2023
1 parent 84c73d2 commit 1f1c057
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 13 deletions.
3 changes: 0 additions & 3 deletions src/main/java/org/cyclonedx/model/LifecycleChoice.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,8 @@
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;

@JsonInclude(JsonInclude.Include.NON_EMPTY)
@XmlAccessorType(XmlAccessType.FIELD)
public class LifecycleChoice
{
@JsonProperty("phase")
Expand Down
3 changes: 0 additions & 3 deletions src/main/java/org/cyclonedx/model/Lifecycles.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,8 @@

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;

@JsonInclude(JsonInclude.Include.NON_EMPTY)
@XmlAccessorType(XmlAccessType.FIELD)
public class Lifecycles
{
@JacksonXmlProperty(localName = "lifecycle")
Expand Down
6 changes: 2 additions & 4 deletions src/main/java/org/cyclonedx/model/Metadata.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@
import java.util.Date;
import java.util.List;
import java.util.Objects;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;

@JsonIgnoreProperties(ignoreUnknown = true)
@JsonInclude(JsonInclude.Include.NON_EMPTY)
Expand All @@ -55,8 +53,8 @@ public class Metadata
@VersionFilter(versions = {"1.0", "1.1", "1.2", "1.3", "1.4"})
@JsonProperty("lifecycles")
@JsonDeserialize(using = LifecycleDeserializer.class)
@XmlElementWrapper(name = "lifecycles")
@XmlElement(name = "lifecycle")
@JacksonXmlElementWrapper(localName = "lifecycles")
@JacksonXmlProperty(localName = "lifecycle")
private Lifecycles lifecycles;

@VersionFilter(versions = {"1.0", "1.1"})
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
package org.cyclonedx.model.metadata;

import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;

import com.fasterxml.jackson.annotation.JsonInclude;
import org.cyclonedx.model.Component;
import org.cyclonedx.model.Service;

@JsonInclude(JsonInclude.Include.NON_EMPTY)
@XmlAccessorType(XmlAccessType.FIELD)
public class ToolInformation
{
private List<Component> components;
Expand Down

0 comments on commit 1f1c057

Please sign in to comment.