You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by py...@apache.org on 2007/10/25 12:11:41 UTC

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

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.
 	 *