Skip to content

Commit 8a5e02d

Browse files
committed
(doc) Simplify CompilationFailureException's shortMessage() method
1 parent fc61c06 commit 8a5e02d

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/main/java/org/apache/maven/plugin/compiler/CompilationFailureException.java

+1-5
Original file line numberDiff line numberDiff line change
@@ -79,11 +79,7 @@ public static String shortMessage( List<CompilerMessage> messages )
7979

8080
if ( messages.size() == 1 )
8181
{
82-
sb.append( LS );
83-
84-
CompilerMessage compilerError = messages.get( 0 );
85-
86-
sb.append( compilerError ).append( LS );
82+
sb.append( LS ).append( messages.get( 0 ) ).append( LS );
8783
}
8884

8985
return sb.toString();

0 commit comments

Comments
 (0)