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-compiler-plugin.git

commit a360bdb6fd8174f8a3cefdd551d15c10306f9381
Author: Sylwester Lachiewicz <[email protected]>
AuthorDate: Tue Nov 17 02:36:44 2026 +0000

    Simplify redundant code
---
 .../org/apache/maven/plugin/compiler/AbstractCompilerMojo.java    | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git 
a/src/main/java/org/apache/maven/plugin/compiler/AbstractCompilerMojo.java 
b/src/main/java/org/apache/maven/plugin/compiler/AbstractCompilerMojo.java
index 01c98fcf..6d8ba509 100644
--- a/src/main/java/org/apache/maven/plugin/compiler/AbstractCompilerMojo.java
+++ b/src/main/java/org/apache/maven/plugin/compiler/AbstractCompilerMojo.java
@@ -969,9 +969,9 @@ public abstract class AbstractCompilerMojo extends 
AbstractMojo {
                 incrementalBuildHelperRequest = new 
IncrementalBuildHelperRequest().inputFiles(sources);
 
                 // Strategies used to detect modifications.
-                String immutableOutputFile = (compiler.getCompilerOutputStyle()
+                String immutableOutputFile = compiler.getCompilerOutputStyle()
                                         
.equals(CompilerOutputStyle.ONE_OUTPUT_FILE_FOR_ALL_INPUT_FILES)
-                                && !canUpdateTarget)
+                                && !canUpdateTarget
                         ? "immutable single output file"
                         : null;
                 String dependencyChanged = null;
@@ -1350,7 +1350,7 @@ public abstract class AbstractCompilerMojo extends 
AbstractMojo {
                 for (CompilerMessage warning : warnings) {
                     getLog().warn(warning.toString());
                 }
-                getLog().info(warnings.size() + ((warnings.size() > 1) ? " 
warnings " : " warning"));
+                getLog().info(warnings.size() + (warnings.size() > 1 ? " 
warnings " : " warning"));
                 
getLog().info("-------------------------------------------------------------");
             }
 
@@ -1361,7 +1361,7 @@ public abstract class AbstractCompilerMojo extends 
AbstractMojo {
                 for (CompilerMessage error : errors) {
                     getLog().error(error.toString());
                 }
-                getLog().info(errors.size() + ((errors.size() > 1) ? " errors 
" : " error"));
+                getLog().info(errors.size() + (errors.size() > 1 ? " errors " 
: " error"));
                 
getLog().info("-------------------------------------------------------------");
             }
 

Reply via email to