Ignore:
Timestamp:
2014-10-18T23:07:52+02:00 (10 years ago)
Author:
donvip
Message:

[josm_plugins] fix Java 7 / unused code warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/imagerycache/src/org/mapdb/LongConcurrentHashMap.java

    r29363 r30737  
    386386                    oldValue = null;
    387387                    ++modCount;
    388                     tab[index] = new HashEntry<V>(key, hash, first, value);
     388                    tab[index] = new HashEntry<>(key, hash, first, value);
    389389                    count = c; // write-volatile
    390390                }
     
    448448                            int k = p.hash & sizeMask;
    449449                            HashEntry<V> n = newTable[k];
    450                             newTable[k] = new HashEntry<V>(p.key, p.hash,
     450                            newTable[k] = new HashEntry<>(p.key, p.hash,
    451451                                    n, p.value);
    452452                        }
     
    482482                        HashEntry<V> newFirst = e.next;
    483483                        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,
    485485                                                          newFirst, p.value);
    486486                        tab[index] = newFirst;
     
    559559
    560560        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);
    562562    }
    563563
Note: See TracChangeset for help on using the changeset viewer.