Changeset 17573 in josm for trunk/src/org


Ignore:
Timestamp:
2021-03-16T23:16:53+01:00 (5 years ago)
Author:
simon04
Message:

see #20563 - Fix PluginHandler, PluginInformation

Regression of r17571.

Location:
trunk/src/org/openstreetmap/josm/plugins
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/plugins/PluginHandler.java

    r17571 r17573  
    3535import java.util.Objects;
    3636import java.util.Set;
     37import java.util.TreeMap;
    3738import java.util.TreeSet;
    3839import java.util.concurrent.CopyOnWriteArrayList;
     
    185186        public String getText() {
    186187            StringBuilder b = new StringBuilder();
    187             for (Entry<Object, Object> e : info.attr.entrySet()) {
     188            Map<Object, Object> sorted = new TreeMap<>(Comparator.comparing(String::valueOf));
     189            sorted.putAll(info.attr);
     190            for (Entry<Object, Object> e : sorted.entrySet()) {
    188191                b.append(e.getKey());
    189192                b.append(": ");
  • trunk/src/org/openstreetmap/josm/plugins/PluginInformation.java

    r17571 r17573  
    150150     */
    151151    public PluginInformation(InputStream manifestStream, String name, String url) throws PluginException {
     152        this.name = name;
    152153        try {
    153154            Manifest manifest = new Manifest();
Note: See TracChangeset for help on using the changeset viewer.