harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ndbe...@apache.org
Subject svn commit: r824016 - /harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/Stack.java
Date Sun, 11 Oct 2009 04:09:15 GMT
Author: ndbeyer
Date: Sun Oct 11 04:09:15 2009
New Revision: 824016

URL: http://svn.apache.org/viewvc?rev=824016&view=rev
Log:
use Vector.isEmpty to implement Stack.empty, so as to provide consistent synchronization

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

Modified: harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/Stack.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/Stack.java?rev=824016&r1=824015&r2=824016&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/Stack.java (original)
+++ harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/Stack.java Sun Oct
11 04:09:15 2009
@@ -39,7 +39,7 @@
      * @return {@code true} if the stack is empty, {@code false} otherwise.
      */
     public boolean empty() {
-        return elementCount == 0;
+        return isEmpty();
     }
 
     /**



Mime
View raw message