jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mreut...@apache.org
Subject svn commit: r125173 - /incubator/jackrabbit/trunk/src/test/org/apache/jackrabbit/test/LogPrintWriter.java
Date Fri, 14 Jan 2005 15:28:54 GMT
Author: mreutegg
Date: Fri Jan 14 07:28:52 2005
New Revision: 125173

URL: http://svn.apache.org/viewcvs?view=rev&rev=125173
Log:
Minor fix for the case when flushing an empty buffer
Modified:
   incubator/jackrabbit/trunk/src/test/org/apache/jackrabbit/test/LogPrintWriter.java

Modified: incubator/jackrabbit/trunk/src/test/org/apache/jackrabbit/test/LogPrintWriter.java
Url: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/src/test/org/apache/jackrabbit/test/LogPrintWriter.java?view=diff&rev=125173&p1=incubator/jackrabbit/trunk/src/test/org/apache/jackrabbit/test/LogPrintWriter.java&r1=125172&p2=incubator/jackrabbit/trunk/src/test/org/apache/jackrabbit/test/LogPrintWriter.java&r2=125173
==============================================================================
--- incubator/jackrabbit/trunk/src/test/org/apache/jackrabbit/test/LogPrintWriter.java	(original)
+++ incubator/jackrabbit/trunk/src/test/org/apache/jackrabbit/test/LogPrintWriter.java	Fri
Jan 14 07:28:52 2005
@@ -135,6 +135,9 @@
     //-----------------------< private methods >--------------------------------
 
     private void flushBuffer() {
+        if (buffer.length() == 0) {
+            return;
+        }
         if (log != null) {
             log.log(level, buffer);
         } else {

Mime
View raw message