added comment to explain code that sets shorteningThreshold to 0

removed unnecessary introduction text
This commit is contained in:
Jan-Peter Klein
2023-07-11 14:10:26 +02:00
parent f25afb720f
commit eebba45909
3 changed files with 3 additions and 5 deletions

View File

@@ -73,7 +73,7 @@ public class CreateNewVaultExpertSettingsController implements FxController {
int intValue = Integer.parseInt(newValue);
shorteningThreshold.set(intValue);
} catch (NumberFormatException e) {
shorteningThreshold.set(0);
shorteningThreshold.set(0); //the value is set to 0 to ensure that an invalid value assignment is detected during a NumberFormatException
}
});
}