Ignore:
Timestamp:
2017-11-17T21:41:11+01:00 (7 years ago)
Author:
donvip
Message:

fix deprecation warnings

Location:
applications/editors/josm/plugins/terracer/src/terracer
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/terracer/src/terracer/HouseNumberInputDialog.java

    r33608 r33839  
    348348            interpolation.add(tr("All"));
    349349            interpolation.add(tr("Even/Odd"));
    350             if (Main.pref.getInteger(INTERPOLATION, 2) == 1) {
     350            if (Main.pref.getInt(INTERPOLATION, 2) == 1) {
    351351                interpolation.select(tr("All"));
    352352            } else {
  • applications/editors/josm/plugins/terracer/src/terracer/HouseNumberInputHandler.java

    r33608 r33839  
    445445     */
    446446    public void saveValues() {
    447         Main.pref.put(HouseNumberInputDialog.HANDLE_RELATION, doHandleRelation());
    448         Main.pref.put(HouseNumberInputDialog.KEEP_OUTLINE, doKeepOutline());
     447        Main.pref.putBoolean(HouseNumberInputDialog.HANDLE_RELATION, doHandleRelation());
     448        Main.pref.putBoolean(HouseNumberInputDialog.KEEP_OUTLINE, doKeepOutline());
    449449        Main.pref.put(HouseNumberInputDialog.INTERPOLATION, stepSize().toString());
    450450    }
Note: See TracChangeset for help on using the changeset viewer.