Better javadoc.
authorSvjatoslav Agejenko <svjatoslav@svjatoslav.eu>
Wed, 2 Apr 2025 21:26:15 +0000 (00:26 +0300)
committerSvjatoslav Agejenko <svjatoslav@svjatoslav.eu>
Wed, 2 Apr 2025 21:26:15 +0000 (00:26 +0300)
src/main/java/eu/svjatoslav/commons/cli_helper/CLIHelper.java

index 96fdfab..8d6a856 100755 (executable)
@@ -135,7 +135,8 @@ public class CLIHelper {
      * @param defaultValue the default float if user simply presses Enter (may be {@code null})
      * @param min          the minimum acceptable value (inclusive), or {@code null} if no lower bound
      * @param max          the maximum acceptable value (inclusive), or {@code null} if no upper bound
-     * @param allowEmpty   if {@code true}, empty input returns {@code null} when {@code defaultValue} is null
+     * @param allowEmpty   if {@code true}, empty input returns {@code null} when {@code defaultValue} is null.
+     *                     When defaultValue is not null, allowEmpty has no effect.
      * @return a {@code Float} value entered by the user, or {@code defaultValue}, or {@code null}
      */
     public static Float askFloat(String prompt, Float defaultValue, Float min, Float max, boolean allowEmpty) {