This is an automated email from the ASF dual-hosted git repository. rfscholte pushed a commit to branch github-19 in repository https://gitbox.apache.org/repos/asf/maven-compiler-plugin.git
commit 4d566f074c32a923d9b793ab1267fd1491dcd9ea Author: Russell Howe <[email protected]> AuthorDate: Tue Jun 4 08:56:44 2019 +0100 (doc) Add more javadoc to CompilationFailureExceptio --- .../maven/plugin/compiler/CompilationFailureException.java | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/main/java/org/apache/maven/plugin/compiler/CompilationFailureException.java b/src/main/java/org/apache/maven/plugin/compiler/CompilationFailureException.java index b231c8e..12c72e1 100644 --- a/src/main/java/org/apache/maven/plugin/compiler/CompilationFailureException.java +++ b/src/main/java/org/apache/maven/plugin/compiler/CompilationFailureException.java @@ -34,11 +34,24 @@ public class CompilationFailureException { private static final String LS = System.getProperty( "line.separator" ); + /** + * Wrap error messages from the compiler + * + * @param messages the messages + * @since 2.0 + */ public CompilationFailureException( List<CompilerMessage> messages ) { super( null, shortMessage( messages ), longMessage( messages ) ); } + /** + * Long message will have all messages, one per line + * + * @param messages the messages + * @return the long error message + * @since 2.0 + */ public static String longMessage( List<CompilerMessage> messages ) { StringBuilder sb = new StringBuilder();
