Skip to content

Commit

Permalink
Remove unused imports
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Alzate <[email protected]>
  • Loading branch information
mr-zepol committed Sep 4, 2024
1 parent 0e07892 commit 95ad41f
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ public class BomJsonGenerator extends AbstractBomGenerator
/**
* Constructs a new BomGenerator object.
* @param bom the BOM to generate
* @param version the version of the CycloneDX schema to use.
*/
public BomJsonGenerator(Bom bom, final Version version) {
super(version, bom, Format.JSON);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ public class BomXmlGenerator extends AbstractBomGenerator
/**
* Constructs a new BomXmlGenerator object.
* @param bom the BOM to generate
* @param version the version of the CycloneDX schema to use.
*/
public BomXmlGenerator(final Bom bom, final Version version) {
super(version, bom, Format.XML);
Expand Down Expand Up @@ -121,6 +122,7 @@ String toXML(final Bom bom, final boolean prettyPrint) throws GeneratorException
* Creates a CycloneDX BoM from a set of Components.
* @return an XML Document representing a CycloneDX BoM
* @since 1.1.0
* @throws ParserConfigurationException if an error occurs
*/
public Document generate() throws ParserConfigurationException {
return generateDocument(bom);
Expand All @@ -138,6 +140,8 @@ public String toXmlString() throws GeneratorException {
*
* @return a String of the BoM
* @since 1.1.0
*
* @throws GeneratorException if an error occurs
*/
@Override
public String toString() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import java.util.List;
import java.util.Objects;
import javax.xml.bind.annotation.XmlElement;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
Expand Down
1 change: 0 additions & 1 deletion src/main/java/org/cyclonedx/model/attestation/Claim.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import java.util.List;
import java.util.Objects;
import javax.xml.bind.annotation.XmlElement;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,9 @@

import java.util.List;
import java.util.Objects;
import javax.xml.bind.annotation.XmlElement;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlElementWrapper;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@
"curve",
"executionEnvironment",
"implementationPlatform",
"certificationLevel", "mode", "padding", "cryptoFunctions",
"certificationLevel",
"mode",
"padding",
"cryptoFunctions",
"classicalSecurityLevel", "nistQuantumSecurityLevel"
})
public class AlgorithmProperties
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ public void setResource(final ResourceReferenceChoice resource) {
this.resource = resource;
}


@JacksonXmlElementWrapper(localName = "environmentVars")
public EnvironmentVars getEnvironmentVars() {
return environmentVars;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ protected void setSourceAndTarget(JsonNode node, AbstractType type) throws JsonP
setReference(node, "target", type);
}


protected void setProperties(JsonNode node, T type)
throws JsonProcessingException
{
Expand Down

0 comments on commit 95ad41f

Please sign in to comment.