Changeset 3549 in josm


Ignore:
Timestamp:
2010-09-19T22:40:14+02:00 (14 years ago)
Author:
stoecker
Message:

document code for array prefs

File:
1 edited

Legend:

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

    r3548 r3549  
    647647        for(String k : keys) {
    648648            try {
    649               Integer.valueOf(k.substring(l));
    650               changed |= put(k, null);
     649                Integer.valueOf(k.substring(l));
     650                changed |= put(k, null);
    651651            } catch(NumberFormatException e) {
    652                 e.printStackTrace();
     652                /* everything which does not end with a number should not be deleted */
    653653            }
    654654        }
     
    667667        for(String k : keys) {
    668668            try {
    669               Integer.valueOf(k.substring(l));
    670               defaults.remove(k);
     669                Integer.valueOf(k.substring(l));
     670                defaults.remove(k);
    671671            } catch(Exception e) {
     672                /* everything which does not end with a number should not be deleted */
    672673            }
    673674        }
Note: See TracChangeset for help on using the changeset viewer.