maven-surefire git commit: SUREFIRE-1382: fixing out of memory error

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

maven-surefire git commit: SUREFIRE-1382: fixing out of memory error

Tibor Digana
Repository: maven-surefire
Updated Branches:
  refs/heads/master dd518d2b1 -> 7176d3c17


SUREFIRE-1382: fixing out of memory error


Project: http://git-wip-us.apache.org/repos/asf/maven-surefire/repo
Commit: http://git-wip-us.apache.org/repos/asf/maven-surefire/commit/7176d3c1
Tree: http://git-wip-us.apache.org/repos/asf/maven-surefire/tree/7176d3c1
Diff: http://git-wip-us.apache.org/repos/asf/maven-surefire/diff/7176d3c1

Branch: refs/heads/master
Commit: 7176d3c17b438c60e48a525ef96e6812f00bec46
Parents: dd518d2
Author: Nicola Ferraro <[hidden email]>
Authored: Wed Jun 14 12:48:06 2017 +0200
Committer: Nicola Ferraro <[hidden email]>
Committed: Wed Jun 14 12:54:34 2017 +0200

----------------------------------------------------------------------
 .../surefire/booterclient/output/MultipleFailureException.java   | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/7176d3c1/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/booterclient/output/MultipleFailureException.java
----------------------------------------------------------------------
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 @@ final class MultipleFailureException
     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 @@ final class MultipleFailureException
     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 )
             {