This is an automated email from the ASF dual-hosted git repository. slachiewicz pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/maven-jmod-plugin.git
commit 4f99fe10196c5deee676c086d35012450eec9f12 Author: Sylwester Lachiewicz <[email protected]> AuthorDate: Tue Nov 17 06:59:20 2026 +0000 Replace remaining StringUtils and Commons calls with the JDK --- src/main/java/org/apache/maven/plugins/jmod/AbstractJModMojo.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/org/apache/maven/plugins/jmod/AbstractJModMojo.java b/src/main/java/org/apache/maven/plugins/jmod/AbstractJModMojo.java index 6b44699..70724f3 100644 --- a/src/main/java/org/apache/maven/plugins/jmod/AbstractJModMojo.java +++ b/src/main/java/org/apache/maven/plugins/jmod/AbstractJModMojo.java @@ -80,7 +80,7 @@ public abstract class AbstractJModMojo extends AbstractMojo { File jModExe; - if (StringUtils.isNotEmpty(jModExecutable)) { + if (jModExecutable != null && !jModExecutable.isEmpty()) { jModExe = new File(jModExecutable); if (jModExe.isDirectory()) { @@ -155,14 +155,14 @@ public abstract class AbstractJModMojo extends AbstractMojo { : '\n' + out.getOutput().trim(); if (exitCode != 0) { - if (StringUtils.isNotEmpty(output)) { + if (output != null && !output.isEmpty()) { // Reconsider to use WARN / ERROR ? getLog().info(output); } StringBuilder msg = new StringBuilder("\nExit code: "); msg.append(exitCode); - if (StringUtils.isNotEmpty(err.getOutput())) { + if (err.getOutput() != null && !err.getOutput().isEmpty()) { msg.append(" - ").append(err.getOutput()); } msg.append('\n'); @@ -171,7 +171,7 @@ public abstract class AbstractJModMojo extends AbstractMojo { throw new MojoExecutionException(msg.toString()); } - if (StringUtils.isNotEmpty(output)) { + if (output != null && !output.isEmpty()) { String[] splitLines = StringUtils.split(output, "\n"); for (String outputLine : splitLines) { getLog().info(outputLine);
