harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From py...@apache.org
Subject svn commit: r440654 - /incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/MiniEnumSet.java
Date Wed, 06 Sep 2006 08:26:49 GMT
Author: pyang
Date: Wed Sep  6 01:26:48 2006
New Revision: 440654

URL: http://svn.apache.org/viewvc?view=rev&rev=440654
Log:
Oops, I missed one file of patch for HARMONY-1387

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

Modified: incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/MiniEnumSet.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/MiniEnumSet.java?view=diff&rev=440654&r1=440653&r2=440654
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/MiniEnumSet.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/MiniEnumSet.java
Wed Sep  6 01:26:48 2006
@@ -230,10 +230,10 @@
     }
     
     @Override
-    void addRange(E start, E end) {
+    void setRange(E start, E end) {
         int length = end.ordinal() - start.ordinal() + 1;
         long range = (-1l >>> (MAX_ELEMENTS - length)) << start.ordinal();
         bits |= range;
-        size += length;
+        size = Long.bitCount(bits);
     }
 }



Mime
View raw message