maven-surefire-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From krosenv...@apache.org
Subject svn commit: r1126721 - /maven/surefire/trunk/surefire-api/src/main/java/org/apache/maven/surefire/booter/ForkingRunListener.java
Date Mon, 23 May 2011 20:32:09 GMT
Author: krosenvold
Date: Mon May 23 20:32:09 2011
New Revision: 1126721

URL: http://svn.apache.org/viewvc?rev=1126721&view=rev
Log:
[SUREFIRE-742] And another highly theoretical problem

Modified:
    maven/surefire/trunk/surefire-api/src/main/java/org/apache/maven/surefire/booter/ForkingRunListener.java

Modified: maven/surefire/trunk/surefire-api/src/main/java/org/apache/maven/surefire/booter/ForkingRunListener.java
URL: http://svn.apache.org/viewvc/maven/surefire/trunk/surefire-api/src/main/java/org/apache/maven/surefire/booter/ForkingRunListener.java?rev=1126721&r1=1126720&r2=1126721&view=diff
==============================================================================
--- maven/surefire/trunk/surefire-api/src/main/java/org/apache/maven/surefire/booter/ForkingRunListener.java
(original)
+++ maven/surefire/trunk/surefire-api/src/main/java/org/apache/maven/surefire/booter/ForkingRunListener.java
Mon May 23 20:32:09 2011
@@ -245,10 +245,9 @@ public class ForkingRunListener
         StringBuffer stringBuffer = new StringBuffer();
         append( stringBuffer, operationCode ).comma( stringBuffer );
         append( stringBuffer, Integer.toHexString( testSetChannelId.intValue() ) ).comma(
stringBuffer );
-        append( stringBuffer, reportEntry.getSourceName() ).comma( stringBuffer );
-        append( stringBuffer, reportEntry.getName() ).comma( stringBuffer );
-        nullableEncoding( stringBuffer, reportEntry.getGroup() );
-        comma( stringBuffer );
+        nullableEncoding( stringBuffer, reportEntry.getSourceName() ).comma( stringBuffer
);
+        nullableEncoding( stringBuffer, reportEntry.getName() ).comma( stringBuffer );
+        nullableEncoding( stringBuffer, reportEntry.getGroup() ).comma( stringBuffer );
         nullableEncoding( stringBuffer, reportEntry.getElapsed() );
         encode( stringBuffer, reportEntry.getStackTraceWriter() );
         stringBuffer.append( "\n" );
@@ -290,7 +289,7 @@ public class ForkingRunListener
     }
 
 
-    private void nullableEncoding( StringBuffer stringBuffer, String source )
+    private ForkingRunListener nullableEncoding( StringBuffer stringBuffer, String source
)
     {
         if ( source == null || source.length() == 0)
         {
@@ -300,6 +299,7 @@ public class ForkingRunListener
         {
             StringUtils.escapeJavaStyleString( stringBuffer, source );
         }
+        return this;
     }
 
     private void encode( StringBuffer stringBuffer, StackTraceWriter stackTraceWriter )



Mime
View raw message