This is an automated email from the ASF dual-hosted git repository. elharo pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/maven-archiver.git
The following commit(s) were added to refs/heads/master by this push: new c7811b7 Avoid wild card imports c7811b7 is described below commit c7811b7f6939b0e3e8279540a8f5b3f5a2fee301 Author: Elliotte Rusty Harold <elh...@ibiblio.org> AuthorDate: Tue Nov 26 14:35:54 2024 -0500 Avoid wild card imports --- .../org/apache/maven/shared/archiver/MavenArchiverTest.java | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/test/java/org/apache/maven/shared/archiver/MavenArchiverTest.java b/src/test/java/org/apache/maven/shared/archiver/MavenArchiverTest.java index 42b5b1b..4f3e132 100644 --- a/src/test/java/org/apache/maven/shared/archiver/MavenArchiverTest.java +++ b/src/test/java/org/apache/maven/shared/archiver/MavenArchiverTest.java @@ -29,7 +29,13 @@ import java.nio.file.Paths; import java.nio.file.attribute.FileTime; import java.time.Instant; import java.time.format.DateTimeParseException; -import java.util.*; +import java.util.ArrayList; +import java.util.Comparator; +import java.util.HashMap; +import java.util.LinkedHashMap; +import java.util.List; +import java.util.Map; +import java.util.Properties; import java.util.jar.Attributes; import java.util.jar.JarFile; import java.util.jar.Manifest; @@ -1198,7 +1204,7 @@ class MavenArchiverTest { } } - public Manifest getJarFileManifest(File jarFile) throws IOException { + private Manifest getJarFileManifest(File jarFile) throws IOException { try (JarFile jar = new JarFile(jarFile)) { return jar.getManifest(); }