Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 06dc84a

Browse filesBrowse files
committed
(doc) Simplify CompilationFailureException's shortMessage() method
1 parent 7cd58b6 commit 06dc84a
Copy full SHA for 06dc84a

File tree

Expand file treeCollapse file tree

1 file changed

+1
-5
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-5
lines changed

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

Copy file name to clipboardExpand all lines: src/main/java/org/apache/maven/plugin/compiler/CompilationFailureException.java
+1-5Lines changed: 1 addition & 5 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.