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-reporting-exec.git


The following commit(s) were added to refs/heads/master by this push:
     new 38fd3d0  Apply OpenRewrite static analysis cleanups
38fd3d0 is described below

commit 38fd3d047c1caaaf59fab8195feea5afb8206b93
Author: Sylwester Lachiewicz <[email protected]>
AuthorDate: Mon Nov 16 15:13:29 2026 +0000

    Apply OpenRewrite static analysis cleanups
---
 .../apache/maven/reporting/exec/DefaultMavenReportExecutor.java   | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git 
a/src/main/java/org/apache/maven/reporting/exec/DefaultMavenReportExecutor.java 
b/src/main/java/org/apache/maven/reporting/exec/DefaultMavenReportExecutor.java
index 48143f3..0a4901e 100644
--- 
a/src/main/java/org/apache/maven/reporting/exec/DefaultMavenReportExecutor.java
+++ 
b/src/main/java/org/apache/maven/reporting/exec/DefaultMavenReportExecutor.java
@@ -222,9 +222,9 @@ public class DefaultMavenReportExecutor implements 
MavenReportExecutor {
             }
             LOGGER.info(
                     "{} {} report{} for {}:{}: {}",
-                    (hasUserDefinedReports ? "Configured" : "Detected"),
+                    hasUserDefinedReports ? "Configured" : "Detected",
                     reports.size(),
-                    (reports.size() > 1 ? "s" : ""),
+                    reports.size() > 1 ? "s" : "",
                     plugin.getArtifactId(),
                     plugin.getVersion(),
                     buff);
@@ -480,10 +480,10 @@ public class DefaultMavenReportExecutor implements 
MavenReportExecutor {
             PlexusConfiguration pluginConf,
             PlexusConfiguration reportSetConf,
             Set<String> parameters) {
-        Xpp3Dom mojoConfig = (mojoConf != null) ? convert(mojoConf) : new 
Xpp3Dom("configuration");
+        Xpp3Dom mojoConfig = mojoConf != null ? convert(mojoConf) : new 
Xpp3Dom("configuration");
 
         if (pluginMgmtConfig != null || pluginConf != null || reportSetConf != 
null) {
-            Xpp3Dom pluginConfig = (pluginConf == null) ? new Xpp3Dom("fake") 
: convert(pluginConf);
+            Xpp3Dom pluginConfig = pluginConf == null ? new Xpp3Dom("fake") : 
convert(pluginConf);
 
             // merge pluginConf into reportSetConf
             Xpp3Dom mergedConfig = 
Xpp3DomUtils.mergeXpp3Dom(convert(reportSetConf), pluginConfig);

Reply via email to