Generic cleanup

This commit is contained in:
Erik Broes
2011-06-12 01:18:17 +02:00
parent 9ca26882d1
commit c54ec090c8
9 changed files with 142 additions and 134 deletions

View File

@@ -137,7 +137,7 @@ public final class SimpleCommandMap implements CommandMap {
}
public synchronized void clearCommands() {
for (Map.Entry<String,Command> entry : knownCommands.entrySet()) {
for (Map.Entry<String, Command> entry : knownCommands.entrySet()) {
entry.getValue().unregister(this);
}
knownCommands.clear();