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

desruisseaux pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-compiler-plugin.git

commit e8398ea9b6e6c3d0b4192de62ef05a60bba05009
Author: Matthias Bünger <[email protected]>
AuthorDate: Sat May 16 21:06:32 2026 +0200

    Spotless
---
 .../org/apache/maven/plugin/compiler/AbstractCompilerMojo.java    | 8 +++++---
 1 file changed, 5 insertions(+), 3 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 c00d35a..f329321 100644
--- a/src/main/java/org/apache/maven/plugin/compiler/AbstractCompilerMojo.java
+++ b/src/main/java/org/apache/maven/plugin/compiler/AbstractCompilerMojo.java
@@ -1428,9 +1428,11 @@ public abstract class AbstractCompilerMojo implements 
Mojo {
                         .append(compileScope.projectScope().id())
                         .append(" classes.");
                 if (executor.listener instanceof DiagnosticLogger diagnostic) {
-                    diagnostic.firstError(failureCause).ifPresent((c) -> 
message.append(System.lineSeparator())
-                            .append("The first error is: ")
-                            .append(c));
+                    diagnostic
+                            .firstError(failureCause)
+                            .ifPresent((c) -> 
message.append(System.lineSeparator())
+                                    .append("The first error is: ")
+                                    .append(c));
                 }
                 var failure = new 
CompilationFailureException(message.toString(), failureCause);
                 if (suppressed != null) {

Reply via email to