diff --git a/core/src/main/java/org/eclipse/dash/licenses/cli/CommandLineSettings.java b/core/src/main/java/org/eclipse/dash/licenses/cli/CommandLineSettings.java index ebf8450f..a63ce64f 100644 --- a/core/src/main/java/org/eclipse/dash/licenses/cli/CommandLineSettings.java +++ b/core/src/main/java/org/eclipse/dash/licenses/cli/CommandLineSettings.java @@ -39,7 +39,7 @@ public class CommandLineSettings implements ISettings { @Override public int getBatchSize() { try { - return commandLine.getParsedOptionValue(BATCH_OPTION, () -> ISettings.super.getBatchSize()).intValue(); + return ((Number) commandLine.getParsedOptionValue(BATCH_OPTION, () -> ISettings.super.getBatchSize())).intValue(); } catch (ParseException e) { // TODO Deal with this throw new RuntimeException(e); @@ -63,7 +63,7 @@ public int getTimeout() { @Override public int getConfidenceThreshold() { try { - return commandLine.getParsedOptionValue(CONFIDENCE_OPTION, () -> ISettings.super.getConfidenceThreshold()).intValue(); + return ((Number) commandLine.getParsedOptionValue(CONFIDENCE_OPTION, () -> ISettings.super.getConfidenceThreshold())).intValue(); } catch (ParseException e) { // TODO Deal with this throw new RuntimeException(e); diff --git a/core/src/test/java/org/eclipse/dash/licenses/tests/CommandLineSettingsTest.java b/core/src/test/java/org/eclipse/dash/licenses/tests/CommandLineSettingsTests.java similarity index 98% rename from core/src/test/java/org/eclipse/dash/licenses/tests/CommandLineSettingsTest.java rename to core/src/test/java/org/eclipse/dash/licenses/tests/CommandLineSettingsTests.java index df3ae26e..28bc3d73 100644 --- a/core/src/test/java/org/eclipse/dash/licenses/tests/CommandLineSettingsTest.java +++ b/core/src/test/java/org/eclipse/dash/licenses/tests/CommandLineSettingsTests.java @@ -16,7 +16,7 @@ import org.eclipse.dash.licenses.cli.CommandLineSettings; import org.junit.jupiter.api.Test; -class CommandLineSettingsTest { +class CommandLineSettingsTests { @Test void testCustomBatchSize() {