[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.73, Tue Nov 11 04:39:30 2014 UTC revision 1.74, Sun Nov 23 17:44:51 2014 UTC
# Line 1363  Line 1363 
1363       * @return {@code true} if this queue contains the specified element       * @return {@code true} if this queue contains the specified element
1364       */       */
1365      public boolean contains(Object o) {      public boolean contains(Object o) {
1366          if (o == null) return false;          if (o != null) {
1367          for (Node p = head; p != null; p = succ(p)) {          for (Node p = head; p != null; p = succ(p)) {
1368              Object item = p.item;              Object item = p.item;
1369              if (p.isData) {              if (p.isData) {
# Line 1373  Line 1373 
1373              else if (item == null)              else if (item == null)
1374                  break;                  break;
1375          }          }
1376            }
1377          return false;          return false;
1378      }      }
1379    

Legend:
Removed from v.1.73  
changed lines
  Added in v.1.74

Doug Lea
ViewVC Help
Powered by ViewVC 1.0.8