From: Svjatoslav Agejenko Date: Thu, 20 Mar 2025 21:27:10 +0000 (+0200) Subject: Fix access types X-Git-Url: http://www2.svjatoslav.eu/gitweb/?a=commitdiff_plain;h=7c06720e09c573354a03ae2d7a3923f4c433df80;p=cli-helper.git Fix access types --- diff --git a/src/main/java/eu/svjatoslav/commons/cli_helper/CLIHelper.java b/src/main/java/eu/svjatoslav/commons/cli_helper/CLIHelper.java index b2ee395..16e5aa2 100755 --- a/src/main/java/eu/svjatoslav/commons/cli_helper/CLIHelper.java +++ b/src/main/java/eu/svjatoslav/commons/cli_helper/CLIHelper.java @@ -71,7 +71,7 @@ public class CLIHelper { * @param max the maximum acceptable value (inclusive) * @return a float value entered by the user, or {@code defaultValue} if empty input */ - private float askFloat(String prompt, float defaultValue, float min, float max) { + public float askFloat(String prompt, float defaultValue, float min, float max) { while (true) { String input = askString(prompt, valueOf(defaultValue)); try { @@ -97,7 +97,7 @@ public class CLIHelper { * @param max the maximum acceptable value (inclusive) * @return a long value entered by the user, or {@code defaultValue} if empty input */ - private long askLong(String prompt, long defaultValue, long min, long max) { + public long askLong(String prompt, long defaultValue, long min, long max) { while (true) { String input = askString(prompt, valueOf(defaultValue)); try {