Print this page


Split Close
Expand all
Collapse all
          --- old/src/share/classes/java/util/concurrent/ConcurrentSkipListSet.java
          +++ new/src/share/classes/java/util/concurrent/ConcurrentSkipListSet.java
↓ open down ↓ 354 lines elided ↑ open up ↑
 355  355      /**
 356  356       * @throws ClassCastException {@inheritDoc}
 357  357       * @throws NullPointerException if the specified element is null
 358  358       */
 359  359      public E higher(E e) {
 360  360          return m.higherKey(e);
 361  361      }
 362  362  
 363  363      public E pollFirst() {
 364  364          Map.Entry<E,Object> e = m.pollFirstEntry();
 365      -        return e == null? null : e.getKey();
      365 +        return (e == null) ? null : e.getKey();
 366  366      }
 367  367  
 368  368      public E pollLast() {
 369  369          Map.Entry<E,Object> e = m.pollLastEntry();
 370      -        return e == null? null : e.getKey();
      370 +        return (e == null) ? null : e.getKey();
 371  371      }
 372  372  
 373  373  
 374  374      /* ---------------- SortedSet operations -------------- */
 375  375  
 376  376  
 377  377      public Comparator<? super E> comparator() {
 378  378          return m.comparator();
 379  379      }
 380  380  
↓ open down ↓ 105 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX