From 9c259eb4c26fd06598e174e788d532d4b57ed531 Mon Sep 17 00:00:00 2001 From: Basil Crow Date: Tue, 19 Sep 2023 00:26:45 -0700 Subject: [PATCH] Use `XStream2` where possible (#572) --- .../plugins/junit/storage/TestResultStorageJunitTest.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/test/java/io/jenkins/plugins/junit/storage/TestResultStorageJunitTest.java b/src/test/java/io/jenkins/plugins/junit/storage/TestResultStorageJunitTest.java index 4bc99de17..df1f17d02 100644 --- a/src/test/java/io/jenkins/plugins/junit/storage/TestResultStorageJunitTest.java +++ b/src/test/java/io/jenkins/plugins/junit/storage/TestResultStorageJunitTest.java @@ -44,6 +44,7 @@ import hudson.tasks.junit.TestResultAction; import hudson.tasks.junit.TestResultSummary; import hudson.tasks.junit.TrendTestResultSummary; +import hudson.util.XStream2; import java.io.ByteArrayInputStream; import java.io.File; import java.io.IOException; @@ -941,7 +942,7 @@ static class LocalConnectionSupplier extends ConnectionSupplier { */ static class RemoteConnectionSupplier extends ConnectionSupplier implements SerializableOnlyOverRemoting { - private static final XStream XSTREAM = new XStream(); + private static final XStream XSTREAM = new XStream2(); private final String databaseXml; static {