Ignore:
Timestamp:
2012-11-18T16:40:44+01:00 (11 years ago)
Author:
bastiK
Message:

suppress some warnings (unchecked cast mostly)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/preferences/advanced/AdvancedPreference.java

    r5438 r5590  
    585585                if (llEditor.getValue() == 1) {
    586586                    List<List<String>> data = llEditor.getData();
    587                     if (!Preferences.equalArray((Collection) llSetting.getValue(), data)) {
     587                    @SuppressWarnings("unchecked")
     588                    Collection<Collection<String>> llSettingValue = (Collection) llSetting.getValue();
     589                    if (!Preferences.equalArray(llSettingValue, data)) {
    588590                        pe.setValue(new ListListSetting(data));
    589591                        ok = true;
     
    645647            if (llEditor.getValue() == 1) {
    646648                List<List<String>> data = llEditor.getData();
    647                 if (!Preferences.equalArray((Collection) stg.getValue(), data)) {
     649                @SuppressWarnings("unchecked")
     650                Collection<Collection<String>> stgValue = (Collection) stg.getValue();
     651                if (!Preferences.equalArray(stgValue, data)) {
    648652                    e.setValue(new ListListSetting(data));
    649653                    applyFilter();
Note: See TracChangeset for help on using the changeset viewer.