Replace Guava methods with stdlib equivalents

This commit is contained in:
Alexander Söderberg 2020-05-11 20:02:33 +02:00
parent 7a6909dab1
commit 282773a43f
No known key found for this signature in database
GPG Key ID: C0207FF7EA146678

View File

@ -118,13 +118,13 @@ import java.util.concurrent.TimeUnit;
return false; return false;
} }
final PlotCacheKey that = (PlotCacheKey) o; final PlotCacheKey that = (PlotCacheKey) o;
return com.google.common.base.Objects.equal(plot.getArea(), that.plot.getArea()) return Objects.equals(plot.getArea(), that.plot.getArea())
&& com.google.common.base.Objects.equal(plot.getId(), that.plot.getId()) && Objects.equals(plot.getId(), that.plot.getId())
&& com.google.common.base.Objects.equal(plot.getOwnerAbs(), that.plot.getOwnerAbs()); && Objects.equals(plot.getOwnerAbs(), that.plot.getOwnerAbs());
} }
@Override public int hashCode() { @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());
} }
} }