Ignore:
Timestamp:
2013-08-11T21:23:19+02:00 (11 years ago)
Author:
Don-vip
Message:

see #8902 - fix compilation warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/Preferences.java

    r6087 r6142  
    12881288                changed = putListOfStructs(key, setting.getValue());
    12891289            }
    1290         };
     1290        }
    12911291        PutVisitor putVisitor = new PutVisitor();
    12921292        value.visit(putVisitor);
     
    16691669    }
    16701670
    1671     public static boolean isEqual(Setting a, Setting b) {
     1671    public static boolean isEqual(Setting<?> a, Setting<?> b) {
    16721672        if (a==null && b==null) return true;
    16731673        if (a==null) return false;
     
    16781678            return (a.getValue().equals(b.getValue()));
    16791679        if (a instanceof ListSetting) {
    1680             @SuppressWarnings("unchecked") Collection<String> aValue = (Collection) a.getValue();
    1681             @SuppressWarnings("unchecked") Collection<String> bValue = (Collection) b.getValue();
     1680            @SuppressWarnings("unchecked") Collection<String> aValue = (Collection<String>) a.getValue();
     1681            @SuppressWarnings("unchecked") Collection<String> bValue = (Collection<String>) b.getValue();
    16821682            return equalCollection(aValue, bValue);
    16831683        }
    16841684        if (a instanceof ListListSetting) {
    1685             @SuppressWarnings("unchecked") Collection<Collection<String>> aValue = (Collection) a.getValue();
    1686             @SuppressWarnings("unchecked") Collection<List<String>> bValue = (Collection) b.getValue();
     1685            @SuppressWarnings("unchecked") Collection<Collection<String>> aValue = (Collection<Collection<String>>) a.getValue();
     1686            @SuppressWarnings("unchecked") Collection<List<String>> bValue = (Collection<List<String>>) b.getValue();
    16871687            return equalArray(aValue, bValue);
    16881688        }
    16891689        if (a instanceof MapListSetting) {
    1690             @SuppressWarnings("unchecked") Collection<Map<String, String>> aValue = (Collection) a.getValue();
    1691             @SuppressWarnings("unchecked") Collection<Map<String, String>> bValue = (Collection) b.getValue();
     1690            @SuppressWarnings("unchecked") Collection<Map<String, String>> aValue = (Collection<Map<String, String>>) a.getValue();
     1691            @SuppressWarnings("unchecked") Collection<Map<String, String>> bValue = (Collection<Map<String, String>>) b.getValue();
    16921692            return equalListOfStructs(aValue, bValue);
    16931693        }
Note: See TracChangeset for help on using the changeset viewer.