This is an automated email from the ASF dual-hosted git repository. gnodet pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/maven.git
The following commit(s) were added to refs/heads/master by this push: new 518b988a09 Remove reference to plexus XmlStreamReader (#1308) 518b988a09 is described below commit 518b988a09d5242515a7083da09cc97d27c47797 Author: Guillaume Nodet <gno...@gmail.com> AuthorDate: Fri Nov 17 16:51:47 2023 +0100 Remove reference to plexus XmlStreamReader (#1308) --- .../maven/plugin/descriptor/PluginDescriptorBuilderTest.java | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/maven-plugin-api/src/test/java/org/apache/maven/plugin/descriptor/PluginDescriptorBuilderTest.java b/maven-plugin-api/src/test/java/org/apache/maven/plugin/descriptor/PluginDescriptorBuilderTest.java index cf06250f88..f9839369e2 100644 --- a/maven-plugin-api/src/test/java/org/apache/maven/plugin/descriptor/PluginDescriptorBuilderTest.java +++ b/maven-plugin-api/src/test/java/org/apache/maven/plugin/descriptor/PluginDescriptorBuilderTest.java @@ -19,13 +19,12 @@ package org.apache.maven.plugin.descriptor; import java.io.IOException; -import java.io.Reader; +import java.io.InputStream; import org.codehaus.plexus.component.repository.ComponentDependency; import org.codehaus.plexus.component.repository.ComponentRequirement; import org.codehaus.plexus.configuration.PlexusConfiguration; import org.codehaus.plexus.configuration.PlexusConfigurationException; -import org.codehaus.plexus.util.xml.XmlStreamReader; import org.junit.jupiter.api.Test; import static org.junit.jupiter.api.Assertions.assertEquals; @@ -41,9 +40,9 @@ import static org.junit.jupiter.api.Assertions.assertTrue; class PluginDescriptorBuilderTest { private PluginDescriptor build(String resource) throws IOException, PlexusConfigurationException { - Reader reader = new XmlStreamReader(getClass().getResourceAsStream(resource)); - - return new PluginDescriptorBuilder().build(reader); + try (InputStream is = getClass().getResourceAsStream(resource)) { + return new PluginDescriptorBuilder().build(is, null); + } } @Test