ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/main/java/util/Vector.java
(Generate patch)

Comparing jsr166/src/main/java/util/Vector.java (file contents):
Revision 1.4 by jsr166, Mon Nov 28 03:28:25 2005 UTC vs.
Revision 1.5 by dl, Mon Nov 28 23:53:32 2005 UTC

# Line 1088 | Line 1088 | public class Vector<E>
1088          public boolean hasNext() {
1089              // Racy but within spec, since modifications are checked
1090              // within or after synchronization in next/previous
1091 <            return cursor < Vector.this.elementCount;
1091 >            return cursor != elementCount;
1092          }
1093  
1094          public boolean hasPrevious() {
1095 <            return cursor > 0;
1095 >            return cursor != 0;
1096          }
1097  
1098          public int nextIndex() {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines