harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From telli...@apache.org
Subject svn commit: r486204 - /harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/EnumSet.java
Date Tue, 12 Dec 2006 16:00:47 GMT
Author: tellison
Date: Tue Dec 12 08:00:46 2006
New Revision: 486204

URL: http://svn.apache.org/viewvc?view=rev&rev=486204
Log:
Apply patch HARMONY-2286 ([classlib] [luni] EnumSet.writeReplace() is never used)

Modified:
    harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/EnumSet.java

Modified: harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/EnumSet.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/EnumSet.java?view=diff&rev=486204&r1=486203&r2=486204
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/EnumSet.java (original)
+++ harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/EnumSet.java Tue
Dec 12 08:00:46 2006
@@ -325,11 +325,11 @@
             return set;
         }
     }
-
+    
     @SuppressWarnings("unchecked")
-    private Object writeReplace() {
+    Object writeReplace() {
         SerializationProxy proxy = new SerializationProxy();
-        proxy.elements = (Enum[]) toArray();
+        proxy.elements = toArray(new Enum[0]);
         proxy.elementType = elementClass;
         return proxy;
     }



Mime
View raw message