From d40e081c3d4d94658638c328d51f85421dd50fd3 Mon Sep 17 00:00:00 2001 From: Sebastian Kaspari Date: Tue, 6 Apr 2010 20:38:54 +0200 Subject: [PATCH] Interate directly over keySet --- src/org/yaaic/command/handler/HelpHandler.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/org/yaaic/command/handler/HelpHandler.java b/src/org/yaaic/command/handler/HelpHandler.java index 747c97f..37ce343 100644 --- a/src/org/yaaic/command/handler/HelpHandler.java +++ b/src/org/yaaic/command/handler/HelpHandler.java @@ -1,6 +1,7 @@ package org.yaaic.command.handler; import java.util.HashMap; +import java.util.Set; import org.yaaic.command.BaseHandler; import org.yaaic.command.CommandParser; @@ -32,8 +33,8 @@ public class HelpHandler extends BaseHandler HashMap commands = cp.getCommands(); HashMap aliases = cp.getAliases(); - Object[] commandKeys = commands.keySet().toArray(); - Object[] aliasesKeys = aliases.keySet().toArray(); + Set commandKeys = commands.keySet(); + Set aliasesKeys = aliases.keySet(); for (Object command: commandKeys) { String alias = "";