mirror of
https://github.com/cryptomator/cryptomator.git
synced 2026-05-20 11:41:26 +00:00
Replaced call to Validate with call to Preconditions
See: https://github.com/cryptomator/cryptomator/pull/1307#discussion_r500760560
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
package org.cryptomator.common.mountpoint;
|
||||
|
||||
import org.apache.commons.lang3.Validate;
|
||||
import com.google.common.base.Preconditions;
|
||||
import org.cryptomator.common.vaults.Volume;
|
||||
|
||||
import java.nio.file.Path;
|
||||
@@ -169,7 +169,7 @@ public interface MountPointChooser extends Comparable<MountPointChooser> {
|
||||
*/
|
||||
@Override
|
||||
default int compareTo(MountPointChooser other) {
|
||||
Validate.notNull(other, "Other must not be null!");
|
||||
Preconditions.checkNotNull(other, "Other must not be null!");
|
||||
|
||||
//Try to compare by priority and sort in ascending order.
|
||||
//1) Compare the priorities.
|
||||
|
||||
Reference in New Issue
Block a user