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-script-interpreter.git
The following commit(s) were added to refs/heads/master by this push:
new aec3f77 Apply OpenRewrite static analysis cleanups
aec3f77 is described below
commit aec3f775b930eec8a4aeb984fd9dd94407270a84
Author: Sylwester Lachiewicz <[email protected]>
AuthorDate: Mon Nov 16 15:22:48 2026 +0000
Apply OpenRewrite static analysis cleanups
---
.../java/org/apache/maven/shared/scriptinterpreter/ScriptRunner.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git
a/src/main/java/org/apache/maven/shared/scriptinterpreter/ScriptRunner.java
b/src/main/java/org/apache/maven/shared/scriptinterpreter/ScriptRunner.java
index 061011d..0f7c837 100644
--- a/src/main/java/org/apache/maven/shared/scriptinterpreter/ScriptRunner.java
+++ b/src/main/java/org/apache/maven/shared/scriptinterpreter/ScriptRunner.java
@@ -235,7 +235,7 @@ public class ScriptRunner implements Closeable {
logger.consumeLine("Running " + scriptDescription + ": " +
scriptFile);
}
- PrintStream out = (logger != null) ? logger.getPrintStream() :
null;
+ PrintStream out = logger != null ? logger.getPrintStream() : null;
Map<String, Object> scriptVariables = new
HashMap<>(this.globalVariables);
scriptVariables.put("basedir", basedir);
@@ -249,7 +249,7 @@ public class ScriptRunner implements Closeable {
logger.consumeLine("Finished " + scriptDescription + ": " +
scriptFile);
}
} catch (ScriptEvaluationException e) {
- Throwable t = (e.getCause() != null) ? e.getCause() : e;
+ Throwable t = e.getCause() != null ? e.getCause() : e;
if (logger != null) {
t.printStackTrace(logger.getPrintStream());
}