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.1 by dl, Fri Nov 25 13:27:29 2005 UTC vs.
Revision 1.2 by jsr166, Sat Nov 26 03:12:10 2005 UTC

# Line 1054 | Line 1054 | public class Vector<E>
1054              throw new IndexOutOfBoundsException("Index: "+index);
1055          return new VectorIterator(index);
1056      }
1057 <
1057 >
1058      /**
1059       * Returns an iterator over the elements in this list in proper sequence.
1060       *
# Line 1105 | Line 1105 | public class Vector<E>
1105                              lastRet = i;
1106                              cursor = i + 1;
1107                              return e;
1108 <                        } catch (IndexOutOfBoundsException fallthrough) {
1108 >                        } catch (IndexOutOfBoundsException fallthrough) {
1109                          }
1110                      }
1111                  }
# Line 1126 | Line 1126 | public class Vector<E>
1126                              lastRet = i;
1127                              cursor = i;
1128                              return e;
1129 <                        } catch (IndexOutOfBoundsException fallthrough) {
1129 >                        } catch (IndexOutOfBoundsException fallthrough) {
1130                          }
1131                      }
1132                  }
# Line 1140 | Line 1140 | public class Vector<E>
1140              if (lastRet < 0)
1141                  throw new IllegalStateException();
1142              synchronized(Vector.this) {
1143 <                if (modCount != expectedModCount)
1143 >                if (modCount != expectedModCount)
1144                      throw new ConcurrentModificationException();
1145                  Vector.this.remove(lastRet);
1146                  if (lastRet < cursor)
# Line 1154 | Line 1154 | public class Vector<E>
1154              if (lastRet < 0)
1155                  throw new IllegalStateException();
1156              synchronized(Vector.this) {
1157 <                if (modCount != expectedModCount)
1157 >                if (modCount != expectedModCount)
1158                      throw new ConcurrentModificationException();
1159                  Vector.this.set(lastRet, e);
1160                  expectedModCount = modCount;
# Line 1163 | Line 1163 | public class Vector<E>
1163  
1164          public void add(E e) {
1165              synchronized(Vector.this) {
1166 <                if (modCount != expectedModCount)
1166 >                if (modCount != expectedModCount)
1167                      throw new ConcurrentModificationException();
1168                  Vector.this.add(cursor++, e);
1169                  lastRet = -1;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines