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/src/org/openstreetmap/josm/tools/Utils.java

    r14535 r14977  
    3030import java.nio.file.attribute.BasicFileAttributes;
    3131import java.nio.file.attribute.FileTime;
    32 import java.security.AccessController;
    3332import java.security.MessageDigest;
    3433import java.security.NoSuchAlgorithmException;
    35 import java.security.PrivilegedAction;
    3634import java.text.Bidi;
    3735import java.text.DateFormat;
     
    15591557     * @param objects objects
    15601558     * @see AccessibleObject#setAccessible
     1559     * @deprecated Use {@link ReflectionUtils#setObjectsAccessible(AccessibleObject...)}
    15611560     * @since 10223
    15621561     */
     1562    @Deprecated
    15631563    public static void setObjectsAccessible(final AccessibleObject... objects) {
    1564         if (objects != null && objects.length > 0) {
    1565             AccessController.doPrivileged((PrivilegedAction<Object>) () -> {
    1566                 for (AccessibleObject o : objects) {
    1567                     if (o != null) {
    1568                         o.setAccessible(true);
    1569                     }
    1570                 }
    1571                 return null;
    1572             });
    1573         }
     1564        ReflectionUtils.setObjectsAccessible(objects);
    15741565    }
    15751566
Note: See TracChangeset for help on using the changeset viewer.