Changeset 9c52d45 for router


Ignore:
Timestamp:
May 3, 2018 1:08:56 PM (2 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
9a7b582
Parents:
a548c30
Message:

Debug: Case-insensitive sort of PortMapper? and AppManager? tables

File:
1 edited

Legend:

Unmodified
Added
Removed
  • router/java/src/net/i2p/router/startup/RouterAppManager.java

    ra548c30 r9c52d45  
    33import java.io.IOException;
    44import java.io.Writer;
     5import java.text.Collator;
    56import java.util.Arrays;
    67import java.util.ArrayList;
     
    209210            list.add("[<b>" + key.getName() + "</b>] = [" + key.getClass().getName() + ' ' + Arrays.toString(val) + "] <i>" + key.getState() + "</i><br>");
    210211        }
    211         Collections.sort(list);
     212        Collections.sort(list, Collator.getInstance());
    212213        for (String e : list) {
    213214            buf.append(e);
     
    226227            list.add("[<b>" + key + "</b>] = [" + val.getClass().getName() + "]<br>");
    227228        }
    228         Collections.sort(list);
     229        Collections.sort(list, Collator.getInstance());
    229230        for (String e : list) {
    230231            buf.append(e);
Note: See TracChangeset for help on using the changeset viewer.