From 7781572b6de33b2099a2f80d373992b287165de2 Mon Sep 17 00:00:00 2001 From: JaniruTEC Date: Wed, 7 Oct 2020 23:27:08 +0200 Subject: [PATCH] Replaced call to Validate with call to Preconditions See: https://github.com/cryptomator/cryptomator/pull/1307#discussion_r500760560 --- .../org/cryptomator/common/mountpoint/MountPointChooser.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main/commons/src/main/java/org/cryptomator/common/mountpoint/MountPointChooser.java b/main/commons/src/main/java/org/cryptomator/common/mountpoint/MountPointChooser.java index b2e0798ac..565dbe834 100644 --- a/main/commons/src/main/java/org/cryptomator/common/mountpoint/MountPointChooser.java +++ b/main/commons/src/main/java/org/cryptomator/common/mountpoint/MountPointChooser.java @@ -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 { */ @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.