harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ndbe...@apache.org
Subject svn commit: r665952 - /harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/io/ObjectOutputStream.java
Date Tue, 10 Jun 2008 02:36:52 GMT
Author: ndbeyer
Date: Mon Jun  9 19:36:52 2008
New Revision: 665952

URL: http://svn.apache.org/viewvc?rev=665952&view=rev
Log:
apply final patch for HARMONY-5847: [classlib][luni][performance] ObjectInputStream/ObjectOutputStream
cleanup

Modified:
    harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/io/ObjectOutputStream.java

Modified: harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/io/ObjectOutputStream.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/io/ObjectOutputStream.java?rev=665952&r1=665951&r2=665952&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/io/ObjectOutputStream.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/io/ObjectOutputStream.java
Mon Jun  9 19:36:52 2008
@@ -115,9 +115,9 @@
 
     private ObjectAccessor accessor = AccessorFactory.getObjectAccessor();
 
-	/*
-	 * Descriptor for java.lang.reflect.Proxy
-	 */
+    /*
+     * Descriptor for java.lang.reflect.Proxy
+     */
     private final ObjectStreamClass proxyClassDesc = ObjectStreamClass.lookup(Proxy.class);

   
     /**
@@ -1461,24 +1461,6 @@
 
         return handle;
     }
-
-    /**
-     * Updates the references table with new handle
-     * 
-     * @param obj
-     *            Non-null object being updated
-     * @param unshared
-     *            whether the handle is unshared
-     */
-    private int updateReference(Object object, boolean unshared) {
-        int handle = nextHandle();
-
-        if (!unshared) {
-            objectsWritten.put(object, handle);
-        }
-        
-        return handle;
-    }
     
     /**
      * Write String <code>object</code> into the receiver. It is assumed the



Mime
View raw message