Changeset 11983 in josm for trunk/scripts


Ignore:
Timestamp:
2017-04-22T23:53:56+02:00 (2 years ago)
Author:
stoecker
Message:

fix too new groovy code, use plain Java sorting

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/scripts/SyncEditorLayerIndex.groovy

    r11981 r11983  
    513513            et = getProjections(e)
    514514            jt = getProjections(j)
    515             if (et) et = String.join(" ", et.toSorted());
    516             if (jt) jt = String.join(" ", jt.toSorted());
     515            if (et) { et = new LinkedList(et); Collections.sort(et); et = String.join(" ", et) }
     516            if (jt) { jt = new LinkedList(jt); Collections.sort(jt); jt = String.join(" ", jt) }
    517517            if (!et.equals(jt)) {
    518518                if (!jt) {
Note: See TracChangeset for help on using the changeset viewer.