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

Diff of /jsr166/src/main/java/util/concurrent/LinkedTransferQueue.java

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

revision 1.111, Sat Dec 24 19:32:07 2016 UTC revision 1.112, Sat Dec 24 20:30:51 2016 UTC
# Line 1322  Line 1322 
1322          if (c == this)          if (c == this)
1323              throw new IllegalArgumentException();              throw new IllegalArgumentException();
1324          int n = 0;          int n = 0;
1325          for (E e; (e = poll()) != null;) {          for (E e; (e = poll()) != null; n++)
1326              c.add(e);              c.add(e);
             ++n;  
         }  
1327          return n;          return n;
1328      }      }
1329    
# Line 1338  Line 1336 
1336          if (c == this)          if (c == this)
1337              throw new IllegalArgumentException();              throw new IllegalArgumentException();
1338          int n = 0;          int n = 0;
1339          for (E e; n < maxElements && (e = poll()) != null;) {          for (E e; n < maxElements && (e = poll()) != null; n++)
1340              c.add(e);              c.add(e);
             ++n;  
         }  
1341          return n;          return n;
1342      }      }
1343    

Legend:
Removed from v.1.111  
changed lines
  Added in v.1.112

Doug Lea
ViewVC Help
Powered by ViewVC 1.0.8