diff --git a/src/main/org/apache/tools/ant/Main.java b/src/main/org/apache/tools/ant/Main.java index eee78a578..8aefc771b 100644 --- a/src/main/org/apache/tools/ant/Main.java +++ b/src/main/org/apache/tools/ant/Main.java @@ -829,12 +829,21 @@ public class Main { /** * Writes a formatted list of target names to System.out - * with an optional description + * with an optional description. * - * @param names the names to be printed. - * @param descriptions the associated target descriptions. - * @param heading the heading for the print. - * @param maxlen the maximum length of the names of the targets. + * @param names The names to be printed. + * Must not be null. + * @param descriptions The associated target descriptions. + * May be null, in which case + * no descriptions are displayed. + * If non-null, this should have + * as many elements as names. + * @param heading The heading to display. + * Should not be null. + * @param maxlen The maximum length of the names of the targets. + * If descriptions are given, they are padded to this + * position so they line up (so long as the names really + * are shorter than this). */ private static void printTargets(Vector names, Vector descriptions, String heading, int maxlen) {