Skip to content

Commit cee6ad8

Browse files
committed
(doc) Simplify CompilationFailureException's shortMessage() method
1 parent fb45475 commit cee6ad8

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
@@ -66,11 +66,7 @@ public static String shortMessage( List<CompilerMessage> messages )
6666

6767
if ( messages.size() == 1 )
6868
{
69-
sb.append( LS );
70-
71-
CompilerMessage compilerError = messages.get( 0 );
72-
73-
sb.append( compilerError ).append( LS );
69+
sb.append( LS ).append( messages.get( 0 ) ).append( LS );
7470
}
7571

7672
return sb.toString();

0 commit comments

Comments
 (0)