remove Objects.requireNonNull

This commit is contained in:
Jan-Peter Klein
2025-08-06 08:18:32 +02:00
parent c199d1cb3b
commit 3b38049d71
3 changed files with 3 additions and 3 deletions

View File

@@ -23,7 +23,6 @@ public interface AddVaultWizardComponent {
@FxmlScene(FxmlFile.ADDVAULT_NEW_NAME)
Lazy<Scene> sceneNew();
@FxmlScene(FxmlFile.ADDVAULT_EXISTING)
Lazy<Scene> sceneExisting();

View File

@@ -104,4 +104,5 @@ public class ChooseExistingVaultController implements FxController {
return screenshot.getValue();
}
}

View File

@@ -66,7 +66,7 @@ public class RecoveryKeyRecoverController implements FxController {
@FXML
public void initialize() {
if (Objects.requireNonNull(recoverType.get()) == RecoveryActionType.RESET_PASSWORD) {
if (recoverType.get() == RecoveryActionType.RESET_PASSWORD) {
cancelButton.setText(resourceBundle.getString("generic.button.cancel"));
} else {
cancelButton.setText(resourceBundle.getString("generic.button.back"));
@@ -75,7 +75,7 @@ public class RecoveryKeyRecoverController implements FxController {
@FXML
public void close() {
if (Objects.requireNonNull(recoverType.get()) == RecoveryActionType.RESET_PASSWORD) {
if (recoverType.get() == RecoveryActionType.RESET_PASSWORD) {
window.close();
} else {
window.setScene(onBoardingScene.get());