fixed some SonarCloud mentioned issues

This commit is contained in:
Jan-Peter Klein 2024-06-26 13:43:21 +02:00
parent 4d9dc4312d
commit cb7d0ade47
No known key found for this signature in database
GPG Key ID: 90EDA3A7C822FD0E
2 changed files with 1 additions and 5 deletions

View File

@ -15,7 +15,6 @@ import org.cryptomator.ui.common.FxmlScene;
import org.cryptomator.ui.common.StageFactory;
import org.cryptomator.ui.common.StageInitializer;
import org.cryptomator.ui.fxapp.PrimaryStage;
import org.cryptomator.ui.health.HealthCheckComponent;
import org.cryptomator.ui.migration.MigrationComponent;
import org.cryptomator.ui.removevault.RemoveVaultComponent;
import org.cryptomator.ui.stats.VaultStatisticsComponent;
@ -28,7 +27,6 @@ import javafx.beans.property.SimpleObjectProperty;
import javafx.scene.Scene;
import javafx.stage.Modality;
import javafx.stage.Stage;
import javafx.stage.StageStyle;
import java.util.Map;
import java.util.ResourceBundle;

View File

@ -124,9 +124,7 @@ public class VaultListController implements FxController {
}
});
vaults.addListener((ListChangeListener<Vault>) c -> {
vaultList.prefHeightProperty().bind(vaultList.fixedCellSizeProperty().multiply(vaultList.getItems().size()));
});
vaults.addListener((ListChangeListener<Vault>) _ -> vaultList.prefHeightProperty().bind(vaultList.fixedCellSizeProperty().multiply(vaultList.getItems().size())));
selectedVault.bind(vaultList.getSelectionModel().selectedItemProperty());
vaults.addListener((ListChangeListener.Change<? extends Vault> c) -> {