harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From le...@apache.org
Subject svn commit: r561301 - /harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/Stack.java
Date Tue, 31 Jul 2007 11:44:47 GMT
Author: leoli
Date: Tue Jul 31 04:44:47 2007
New Revision: 561301

URL: http://svn.apache.org/viewvc?view=rev&rev=561301
Log:
Modification to patch HARMONY-4577(java.util.Stack.empty() need not to be synchronized.)

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?view=diff&rev=561301&r1=561300&r2=561301
==============================================================================
--- 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 Tue Jul
31 04:44:47 2007
@@ -39,7 +39,7 @@
 	 * 
 	 * @return true if the stack is empty, false otherwise
 	 */
-	public synchronized boolean empty() {
+	public boolean empty() {
 		return elementCount == 0;
 	}
 



Mime
View raw message