harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From py...@apache.org
Subject svn commit: r588188 [2/2] - in /harmony/enhanced/classlib/branches/java6/modules/luni/src/main/java/java: lang/Math.java util/Collections.java util/EnumMap.java util/GregorianCalendar.java util/LinkedList.java util/Stack.java
Date Thu, 25 Oct 2007 10:11:41 GMT
Modified: harmony/enhanced/classlib/branches/java6/modules/luni/src/main/java/java/util/Stack.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/branches/java6/modules/luni/src/main/java/java/util/Stack.java?rev=588188&r1=588187&r2=588188&view=diff
==============================================================================
--- harmony/enhanced/classlib/branches/java6/modules/luni/src/main/java/java/util/Stack.java
(original)
+++ harmony/enhanced/classlib/branches/java6/modules/luni/src/main/java/java/util/Stack.java
Thu Oct 25 03:11:36 2007
@@ -39,7 +39,7 @@
 	 * 
 	 * @return true if the stack is empty, false otherwise
 	 */
-	public synchronized boolean empty() {
+	public boolean empty() {
 		return elementCount == 0;
 	}
 
@@ -71,7 +71,7 @@
 	 */
 	@SuppressWarnings("unchecked")
     public synchronized E pop() {
-        if(elementCount == 0){
+		if(elementCount == 0){
             throw new EmptyStackException();
         }
 		final int index = --elementCount;
@@ -80,7 +80,7 @@
         modCount++;
 		return obj;
 	}
-    
+
 	/**
 	 * Pushes the object from the parameter onto the top of the stack.
 	 * 



Mime
View raw message