Changeset 30737 in osm for applications/editors/josm/plugins/imagerycache/src/org/mapdb/LongConcurrentHashMap.java
- Timestamp:
- 2014-10-18T23:07:52+02:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/imagerycache/src/org/mapdb/LongConcurrentHashMap.java
r29363 r30737 386 386 oldValue = null; 387 387 ++modCount; 388 tab[index] = new HashEntry< V>(key, hash, first, value);388 tab[index] = new HashEntry<>(key, hash, first, value); 389 389 count = c; // write-volatile 390 390 } … … 448 448 int k = p.hash & sizeMask; 449 449 HashEntry<V> n = newTable[k]; 450 newTable[k] = new HashEntry< V>(p.key, p.hash,450 newTable[k] = new HashEntry<>(p.key, p.hash, 451 451 n, p.value); 452 452 } … … 482 482 HashEntry<V> newFirst = e.next; 483 483 for (HashEntry<V> p = first; p != e; p = p.next) 484 newFirst = new HashEntry< V>(p.key, p.hash,484 newFirst = new HashEntry<>(p.key, p.hash, 485 485 newFirst, p.value); 486 486 tab[index] = newFirst; … … 559 559 560 560 for (int i = 0; i < this.segments.length; ++i) 561 this.segments[i] = new Segment< V>(cap, loadFactor);561 this.segments[i] = new Segment<>(cap, loadFactor); 562 562 } 563 563
Note:
See TracChangeset
for help on using the changeset viewer.