[cvs] / jsr166 / src / main / java / util / Vector.java Repository:
ViewVC logotype

Diff of /jsr166/src/main/java/util/Vector.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.43, Wed Dec 21 05:15:08 2016 UTC revision 1.44, Sat Dec 24 19:32:07 2016 UTC
# Line 1454  Line 1454 
1454    
1455          @SuppressWarnings("unchecked")          @SuppressWarnings("unchecked")
1456          public boolean tryAdvance(Consumer<? super E> action) {          public boolean tryAdvance(Consumer<? super E> action) {
1457                Objects.requireNonNull(action);
1458              int i;              int i;
             if (action == null)  
                 throw new NullPointerException();  
1459              if (getFence() > (i = index)) {              if (getFence() > (i = index)) {
1460                  index = i + 1;                  index = i + 1;
1461                  action.accept((E)array[i]);                  action.accept((E)array[i]);
# Line 1469  Line 1468 
1468    
1469          @SuppressWarnings("unchecked")          @SuppressWarnings("unchecked")
1470          public void forEachRemaining(Consumer<? super E> action) {          public void forEachRemaining(Consumer<? super E> action) {
1471              if (action == null)              Objects.requireNonNull(action);
                 throw new NullPointerException();  
1472              final int hi = getFence();              final int hi = getFence();
1473              final Object[] a = array;              final Object[] a = array;
1474              int i;              int i;

Legend:
Removed from v.1.43  
changed lines
  Added in v.1.44

Doug Lea
ViewVC Help
Powered by ViewVC 1.0.8