address TODOs

This commit is contained in:
Armin Schrenk
2023-01-13 16:24:15 +01:00
parent 23060a8497
commit 08d741ecf5
3 changed files with 2 additions and 4 deletions

View File

@@ -107,7 +107,7 @@ public class Mounter {
//mountpoint must exist
throw new MountPointNotExistsException(e.getMessage());
} else {
//TODO: if (!canMountToDir && canMountToParent && !Files.notExists(userChosenMountPoint)) {
//TODO: add specific exception for !canMountToDir && canMountToParent && !Files.notExists(userChosenMountPoint)
throw new IllegalMountPointException(e.getMessage());
}
}

View File

@@ -345,10 +345,8 @@ public class Vault {
public boolean supportsForcedUnmount() {
var mh = mountHandle.get();
if (mh == null) {
//TODO: or return false?
throw new IllegalStateException("Vault is not mounted");
}
;
return mountHandle.get().supportsUnmountForced();
}

View File

@@ -82,7 +82,7 @@ public class VolumePreferencesController implements FxController {
@Override
public String toString(MountService provider) {
return provider== null? "Automatic" : provider.displayName(); //TODO: adjust message
return provider.displayName();
}
@Override