correctly declare thrown exceptions

This commit is contained in:
2025-07-31 10:10:21 +02:00
parent ad25f48116
commit d87e503cfe

View File

@@ -178,7 +178,7 @@ class Darlehenberechner {
} }
private static void askParametersAndRun() throws IOException { private static void askParametersAndRun() throws ParseException, IOException {
DECIMAL_FORMAT.setParseBigDecimal(true); DECIMAL_FORMAT.setParseBigDecimal(true);
var konfig = new Konfiguration(); var konfig = new Konfiguration();
@@ -217,7 +217,7 @@ class Darlehenberechner {
} }
private static void parseParametersAndRun(String[] args) { private static void parseParametersAndRun(String[] args) throws ParseException {
var konfig = new Konfiguration(); var konfig = new Konfiguration();
int count = 0; int count = 0;
DECIMAL_FORMAT.setParseBigDecimal(true); DECIMAL_FORMAT.setParseBigDecimal(true);