Browse Source

Sort the license list tree map

Change-Id: I9efb254d54c2f53a1cf127f95e3e817754cc713d
Reviewed-on: http://gerrit.dmdirc.com/765
Automatic-Compile: DMDirc Local Commits <dmdirc@googlemail.com>
Automatic-Compile: Chris Smith <chris@dmdirc.com>
Reviewed-by: Chris Smith <chris@dmdirc.com>
tags/0.6.3b1
Gregory Holmes 14 years ago
parent
commit
e3b838e17c
1 changed files with 5 additions and 1 deletions
  1. 5
    1
      src/com/dmdirc/plugins/PluginInfo.java

+ 5
- 1
src/com/dmdirc/plugins/PluginInfo.java View File

@@ -258,7 +258,11 @@ public class PluginInfo implements Comparable<PluginInfo>, ServiceProvider {
258 258
      * @throws IOException if there is an error with the ResourceManager.
259 259
      */
260 260
     public Map<String, InputStream> getLicenceStreams() throws IOException {
261
-        return new TreeMap<String, InputStream>(getResourceManager().getResourcesStartingWithAsInputStreams("META-INF/licences/"));
261
+        final TreeMap<String, InputStream> licences =
262
+                new TreeMap<String, InputStream>(String.CASE_INSENSITIVE_ORDER);
263
+        licences.putAll(getResourceManager().getResourcesStartingWithAsInputStreams(
264
+                "META-INF/licences/"));
265
+        return licences;
262 266
     }
263 267
 
264 268
     /**

Loading…
Cancel
Save