harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From telli...@apache.org
Subject svn commit: r542489 - /harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/Vector.java
Date Tue, 29 May 2007 11:16:16 GMT
Author: tellison
Date: Tue May 29 04:16:15 2007
New Revision: 542489

URL: http://svn.apache.org/viewvc?view=rev&rev=542489
Log:
Remove unnecessary synchronization.  Answer is out of synch with other methods anyway.

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

Modified: harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/Vector.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/Vector.java?view=diff&rev=542489&r1=542488&r2=542489
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/Vector.java (original)
+++ harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/Vector.java Tue May
29 04:16:15 2007
@@ -342,10 +342,8 @@
 			int pos = 0;
 
 			public boolean hasMoreElements() {
-                synchronized (Vector.this) {
-                    return pos < elementCount;
-                }
-			}
+                return pos < elementCount;
+            }
 
 			public E nextElement() {
 				synchronized (Vector.this) {



Mime
View raw message