directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r944811 - /directory/apacheds/trunk/jdbm/src/main/java/jdbm/helper/Serialization.java
Date Sun, 16 May 2010 12:03:50 GMT
Author: elecharny
Date: Sun May 16 12:03:50 2010
New Revision: 944811

URL: http://svn.apache.org/viewvc?rev=944811&view=rev
Log:
Removed undue System.out.println

Modified:
    directory/apacheds/trunk/jdbm/src/main/java/jdbm/helper/Serialization.java

Modified: directory/apacheds/trunk/jdbm/src/main/java/jdbm/helper/Serialization.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/jdbm/src/main/java/jdbm/helper/Serialization.java?rev=944811&r1=944810&r2=944811&view=diff
==============================================================================
--- directory/apacheds/trunk/jdbm/src/main/java/jdbm/helper/Serialization.java (original)
+++ directory/apacheds/trunk/jdbm/src/main/java/jdbm/helper/Serialization.java Sun May 16
12:03:50 2010
@@ -67,7 +67,6 @@ public final class Serialization
     public static byte[] serialize( Object obj )
         throws IOException
     {
-        long tt0 = System.currentTimeMillis();
         ByteArrayOutputStream  baos;
         ObjectOutputStream     oos;
 
@@ -76,14 +75,7 @@ public final class Serialization
         oos.writeObject( obj );
         oos.close();
 
-        long tt1 = System.currentTimeMillis();
         byte[] res = baos.toByteArray();
-        long tt2 = System.currentTimeMillis();
-        
-        if ( tt2 - tt0 > 400 )
-        {
-            System.out.println( ( tt1 - tt0 ) + " /  " + ( tt2 - tt1 ) );
-        }
         
         return res;
     }



Mime
View raw message