From 282773a43fb772fe57febc26c28c19d9a37e05d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20S=C3=B6derberg?= Date: Mon, 11 May 2020 20:02:33 +0200 Subject: [PATCH] Replace Guava methods with stdlib equivalents --- .../com/plotsquared/core/backup/SimpleBackupManager.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Core/src/main/java/com/plotsquared/core/backup/SimpleBackupManager.java b/Core/src/main/java/com/plotsquared/core/backup/SimpleBackupManager.java index 4f4a514bc..57cbea1d8 100644 --- a/Core/src/main/java/com/plotsquared/core/backup/SimpleBackupManager.java +++ b/Core/src/main/java/com/plotsquared/core/backup/SimpleBackupManager.java @@ -118,13 +118,13 @@ import java.util.concurrent.TimeUnit; return false; } final PlotCacheKey that = (PlotCacheKey) o; - return com.google.common.base.Objects.equal(plot.getArea(), that.plot.getArea()) - && com.google.common.base.Objects.equal(plot.getId(), that.plot.getId()) - && com.google.common.base.Objects.equal(plot.getOwnerAbs(), that.plot.getOwnerAbs()); + return Objects.equals(plot.getArea(), that.plot.getArea()) + && Objects.equals(plot.getId(), that.plot.getId()) + && Objects.equals(plot.getOwnerAbs(), that.plot.getOwnerAbs()); } @Override public int hashCode() { - return com.google.common.base.Objects.hashCode(plot.getArea(), plot.getId(), plot.getOwnerAbs()); + return Objects.hash(plot.getArea(), plot.getId(), plot.getOwnerAbs()); } }