We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fc61c06 commit 83b0343Copy full SHA for 83b0343
src/main/java/org/apache/maven/plugin/compiler/CompilationFailureException.java
@@ -73,17 +73,11 @@ public static String longMessage( List<CompilerMessage> messages )
73
*/
74
public static String shortMessage( List<CompilerMessage> messages )
75
{
76
- StringBuilder sb = new StringBuilder();
77
-
78
- sb.append( "Compilation failure" );
+ StringBuilder sb = new StringBuilder( "Compilation failure" );
79
80
if ( messages.size() == 1 )
81
82
- sb.append( LS );
83
84
- CompilerMessage compilerError = messages.get( 0 );
85
86
- sb.append( compilerError ).append( LS );
+ sb.append( LS ).append( messages.get( 0 ) ).append( LS );
87
}
88
89
return sb.toString();
0 commit comments