From 7c06720e09c573354a03ae2d7a3923f4c433df80 Mon Sep 17 00:00:00 2001 From: Svjatoslav Agejenko Date: Thu, 20 Mar 2025 23:27:10 +0200 Subject: [PATCH] Fix access types --- src/main/java/eu/svjatoslav/commons/cli_helper/CLIHelper.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 { -- 2.20.1