Ignore:
Timestamp:
2014-07-14T04:18:06+02:00 (10 years ago)
Author:
donvip
Message:

[josm_plugins] fix compilation warnings

File:
1 edited

Legend:

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

    r29363 r30532  
    44import java.util.Map;
    55import java.util.NavigableSet;
    6 import java.util.Set;
    76import java.util.concurrent.ConcurrentMap;
    87
     
    2120            public Iterator<K1> iterator() {
    2221                //use range query to get all values
     22                @SuppressWarnings("unchecked")
    2323                final Iterator<Fun.Tuple2<K2,K1>> iter =
    24                     ((NavigableSet)secondaryKeys) //cast is workaround for generics
     24                    secondaryKeys
    2525                        .subSet(
    26                                 Fun.t2(secondaryKey,null), //NULL represents lower bound, everything is larger than null
    27                                 Fun.t2(secondaryKey,Fun.HI) // HI is upper bound everything is smaller then HI
     26                                Fun.t2(secondaryKey,(K1)null), //NULL represents lower bound, everything is larger than null
     27                                Fun.t2(secondaryKey,(K1)Fun.HI) // HI is upper bound everything is smaller then HI
    2828                        ).iterator();
    2929
     
    5959    }
    6060
    61     public static void size(MapWithModificationListener map, final Atomic.Long size){
     61    public static <K,V> void size(MapWithModificationListener<K, V> map, final Atomic.Long size){
    6262        //set initial value first if necessary
    6363        if(size.get() == 0 && map.isEmpty())
    6464            size.set(map.size()); //TODO long overflow?
    6565
    66         map.addModificationListener(new MapListener() {
     66        map.addModificationListener(new MapListener<K, V>() {
    6767            @Override
    6868            public void update(Object key, Object oldVal, Object newVal) {
Note: See TracChangeset for help on using the changeset viewer.