diff --git a/bom/pom.xml b/bom/pom.xml index c9e9f13d..8c037f46 100644 --- a/bom/pom.xml +++ b/bom/pom.xml @@ -30,7 +30,7 @@ Posten signering - Java API Client BOM - 3.0.0 + 3.1.0 diff --git a/lib/src/main/java/no/digipost/signature/client/asice/signature/XAdESArtifacts.java b/lib/src/main/java/no/digipost/signature/client/asice/signature/XAdESArtifacts.java index 0d1b21a5..0df1ac95 100644 --- a/lib/src/main/java/no/digipost/signature/client/asice/signature/XAdESArtifacts.java +++ b/lib/src/main/java/no/digipost/signature/client/asice/signature/XAdESArtifacts.java @@ -7,12 +7,11 @@ import org.w3c.dom.Node; import org.w3c.dom.NodeList; -import static java.util.Collections.singleton; import static java.util.stream.IntStream.range; final class XAdESArtifacts { - private static JaxbMarshaller marshaller = new JaxbMarshaller(singleton(QualifyingProperties.class)); + private static JaxbMarshaller marshaller = new JaxbMarshaller(QualifyingProperties.class); public static XAdESArtifacts from(QualifyingProperties qualifyingProperties) { diff --git a/lib/src/test/java/no/digipost/signature/client/asice/signature/CreateSignatureTest.java b/lib/src/test/java/no/digipost/signature/client/asice/signature/CreateSignatureTest.java index 2fd7bf46..9a2f18a4 100644 --- a/lib/src/test/java/no/digipost/signature/client/asice/signature/CreateSignatureTest.java +++ b/lib/src/test/java/no/digipost/signature/client/asice/signature/CreateSignatureTest.java @@ -22,7 +22,6 @@ import java.time.ZoneId; import java.time.ZonedDateTime; import java.util.Base64; -import java.util.HashSet; import java.util.List; import static java.util.Arrays.asList; @@ -44,7 +43,7 @@ class CreateSignatureTest { private KeyStoreConfig noekkelpar; private List files; - private static final JaxbMarshaller unmarshaller = new JaxbMarshaller(new HashSet<>(asList(XAdESSignatures.class, QualifyingProperties.class))); + private static final JaxbMarshaller unmarshaller = new JaxbMarshaller(XAdESSignatures.class, QualifyingProperties.class); @BeforeEach void setUp() {