From d5632035b431d42d0a0901c30ee587ec57b2e049 Mon Sep 17 00:00:00 2001 From: asofold Date: Sat, 20 Dec 2014 16:32:16 +0100 Subject: [PATCH] Javadoc corrections. --- .../fr/neatmonster/nocheatplus/command/CommandUtil.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/NCPCore/src/main/java/fr/neatmonster/nocheatplus/command/CommandUtil.java b/NCPCore/src/main/java/fr/neatmonster/nocheatplus/command/CommandUtil.java index cf6137bd..7ba8a82f 100644 --- a/NCPCore/src/main/java/fr/neatmonster/nocheatplus/command/CommandUtil.java +++ b/NCPCore/src/main/java/fr/neatmonster/nocheatplus/command/CommandUtil.java @@ -132,7 +132,7 @@ public class CommandUtil { } return null; } - + /** * Convenience method to map all matches within one of the String[] arrays * to its first element.
@@ -158,9 +158,10 @@ public class CommandUtil { } /** - * Clear tree and feed lower case. Adds versions with "/" if missing, also adds input without the first "/". No trimming is used, except left-trim. + * Feed lower-case inputs. Adds versions with "/" if missing, also adds input without the first "/". Trimming from the left side is used, but the original input is also added. * @param tree * @param inputs + * @param clear If to clear the tree, before feeding. */ public static void feedCommands(SimpleCharPrefixTree tree, Collection inputs, boolean clear) { if (clear) { @@ -199,7 +200,7 @@ public class CommandUtil { * @param tree * @param config * @param configPath - * @param clear If to clear the map before inserting anything. + * @param clear If to clear the tree before inserting anything. */ public static void feedCommands(SimpleCharPrefixTree tree, ConfigFile config, String configPath, boolean clear) { final List prefixes = config.getStringList(configPath);