Ignore:
Timestamp:
2019-04-09T01:32:56+02:00 (5 years ago)
Author:
Don-vip
Message:

ensures consistency of upload comment:

  • fix #11168 - ctrl-z/undo could reset unwanted old changeset comment
  • fix #13474 - selecting "new changeset" after having entered a changeset comment did reset it to the previous value
  • fix #17452 - ctrl-enter while typing a changeset comment did upload with the previous value
  • fix behaviour of upload.comment.max-age: values were reset after 5 months instead of intended 4 hours because seconds were compared to milliseconds
  • avoid creation of unneeded undo/redo internal classes for non-editable text fields
  • ensures consistency of upload dialog if upload.comment properties are modified manually from advanced preferences
  • add a source attribute to preference events to know which class modified the preference entry
  • refactor reflection utils
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/actions/CreateCircleActionTest.java

    r14542 r14977  
    2121import org.openstreetmap.josm.tools.GeoPropertyIndex;
    2222import org.openstreetmap.josm.tools.Geometry;
     23import org.openstreetmap.josm.tools.ReflectionUtils;
    2324import org.openstreetmap.josm.tools.RightAndLefthandTraffic;
    24 import org.openstreetmap.josm.tools.Utils;
    2525
    2626import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
     
    118118        // Mock left/right hand traffic database
    119119        Field rlCache = RightAndLefthandTraffic.class.getDeclaredField("rlCache");
    120         Utils.setObjectsAccessible(rlCache);
     120        ReflectionUtils.setObjectsAccessible(rlCache);
    121121        Object origRlCache = rlCache.get(null);
    122122        rlCache.set(null, new GeoPropertyIndex<>(new ConstantTrafficHand(true), 24));
Note: See TracChangeset for help on using the changeset viewer.