Minor tool task improvements

- List tasks alphabetically in tools runner
- Remove redundant space before CUSTOM entry in hash algorithms table
This commit is contained in:
ljacqu
2016-10-02 10:55:02 +02:00
parent 6f4a5fee07
commit e07c685d2a
3 changed files with 4 additions and 5 deletions
+2 -2
View File
@@ -5,9 +5,9 @@ import fr.xephi.authme.TestHelper;
import tools.utils.AutoToolTask;
import tools.utils.ToolTask;
import java.util.HashMap;
import java.util.Map;
import java.util.Scanner;
import java.util.TreeMap;
/**
* Runner for executing tool tasks.
@@ -29,7 +29,7 @@ public final class ToolsRunner {
// Note ljacqu 20151212: If the tools folder becomes a lot bigger, it will make sense to restrict the depth
// of this recursive collector
ClassCollector collector = new ClassCollector(TestHelper.TEST_SOURCES_FOLDER, "tools");
Map<String, ToolTask> tasks = new HashMap<>();
Map<String, ToolTask> tasks = new TreeMap<>(String.CASE_INSENSITIVE_ORDER);
for (ToolTask task : collector.getInstancesOfType(ToolTask.class)) {
tasks.put(task.getTaskName(), task);
}