ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/main/java/util/concurrent/ConcurrentSkipListMap.java
(Generate patch)

Comparing jsr166/src/main/java/util/concurrent/ConcurrentSkipListMap.java (file contents):
Revision 1.136 by jsr166, Sun Mar 16 03:31:26 2014 UTC vs.
Revision 1.137 by jsr166, Sun May 25 02:33:45 2014 UTC

# Line 1334 | Line 1334 | public class ConcurrentSkipListMap<K,V>
1334  
1335          // Track the current rightmost node at each level. Uses an
1336          // ArrayList to avoid committing to initial or maximum level.
1337 <        ArrayList<Index<K,V>> preds = new ArrayList<Index<K,V>>();
1337 >        ArrayList<Index<K,V>> preds = new ArrayList<>();
1338  
1339          // initialize
1340          for (int i = 0; i <= h.level; ++i)
# Line 1436 | Line 1436 | public class ConcurrentSkipListMap<K,V>
1436  
1437          HeadIndex<K,V> h = head;
1438          Node<K,V> basepred = h.node;
1439 <        ArrayList<Index<K,V>> preds = new ArrayList<Index<K,V>>();
1439 >        ArrayList<Index<K,V>> preds = new ArrayList<>();
1440          for (int i = 0; i <= h.level; ++i)
1441              preds.add(null);
1442          Index<K,V> q = h;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines