mirror of
https://github.com/cryptomator/cryptomator.git
synced 2026-05-23 05:01:28 +00:00
remove Objects.requireNonNull
This commit is contained in:
@@ -23,7 +23,6 @@ public interface AddVaultWizardComponent {
|
||||
|
||||
@FxmlScene(FxmlFile.ADDVAULT_NEW_NAME)
|
||||
Lazy<Scene> sceneNew();
|
||||
|
||||
@FxmlScene(FxmlFile.ADDVAULT_EXISTING)
|
||||
Lazy<Scene> sceneExisting();
|
||||
|
||||
|
||||
@@ -104,4 +104,5 @@ public class ChooseExistingVaultController implements FxController {
|
||||
return screenshot.getValue();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user