This is an automated email from the ASF dual-hosted git repository.

elharo pushed a commit to branch clean
in repository https://gitbox.apache.org/repos/asf/maven-archiver.git

commit e0b146fdf05e9d66b81d5190bbb984307cd5dc7e
Author: Elliotte Rusty Harold <elh...@ibiblio.org>
AuthorDate: Tue Nov 26 11:15:08 2024 -0500

    inspections
---
 src/main/java/org/apache/maven/archiver/ManifestConfiguration.java | 2 +-
 src/main/java/org/apache/maven/archiver/PomPropertiesUtil.java     | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/main/java/org/apache/maven/archiver/ManifestConfiguration.java 
b/src/main/java/org/apache/maven/archiver/ManifestConfiguration.java
index 6b839b3..817fd87 100644
--- a/src/main/java/org/apache/maven/archiver/ManifestConfiguration.java
+++ b/src/main/java/org/apache/maven/archiver/ManifestConfiguration.java
@@ -246,7 +246,7 @@ public class ManifestConfiguration {
     public String getClasspathPrefix() {
         String cpp = classpathPrefix.replaceAll("\\\\", "/");
 
-        if (cpp.length() != 0 && !cpp.endsWith("/")) {
+        if (!cpp.isEmpty() && !cpp.endsWith("/")) {
             cpp += "/";
         }
 
diff --git a/src/main/java/org/apache/maven/archiver/PomPropertiesUtil.java 
b/src/main/java/org/apache/maven/archiver/PomPropertiesUtil.java
index de9722c..391ed77 100644
--- a/src/main/java/org/apache/maven/archiver/PomPropertiesUtil.java
+++ b/src/main/java/org/apache/maven/archiver/PomPropertiesUtil.java
@@ -71,7 +71,7 @@ public class PomPropertiesUtil {
             return;
         }
 
-        try (PrintWriter pw = new PrintWriter(outputFile.toFile(), 
StandardCharsets.ISO_8859_1.name());
+        try (PrintWriter pw = new PrintWriter(outputFile.toFile(), 
StandardCharsets.ISO_8859_1);
                 StringWriter sw = new StringWriter()) {
 
             properties.store(sw, null);

Reply via email to