commit | 7176d3c17b438c60e48a525ef96e6812f00bec46 | [log] [tgz] |
---|---|---|
author | Nicola Ferraro <ni.ferraro@gmail.com> | Wed Jun 14 12:48:06 2017 +0200 |
committer | Nicola Ferraro <ni.ferraro@gmail.com> | Wed Jun 14 12:54:34 2017 +0200 |
tree | acd43a28ddac743fbe7c65c56f4f685ce3d59536 | |
parent | dd518d2b14e797014ec740360afc3d2c79642b3a [diff] |
SUREFIRE-1382: fixing out of memory error
diff --git a/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/booterclient/output/MultipleFailureException.java b/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/booterclient/output/MultipleFailureException.java index 4149ad9..060994b 100644 --- a/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/booterclient/output/MultipleFailureException.java +++ b/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/booterclient/output/MultipleFailureException.java
@@ -42,7 +42,7 @@ public String getLocalizedMessage() { StringBuilder messages = new StringBuilder(); - for ( Throwable exception = exceptions.peek(); exception != null; exception = exceptions.peek() ) + for ( Throwable exception : exceptions ) { if ( messages.length() != 0 ) { @@ -58,7 +58,7 @@ public String getMessage() { StringBuilder messages = new StringBuilder(); - for ( Throwable exception = exceptions.peek(); exception != null; exception = exceptions.peek() ) + for ( Throwable exception : exceptions ) { if ( messages.length() != 0 ) {