From 513a37f47b73718135925fc6bfe60f52d673c774 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Mon, 8 Apr 2013 21:52:00 +0200 Subject: [PATCH] Simplify equals(). --- src/main/java/net/pterodactylus/xdcc/data/Network.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/main/java/net/pterodactylus/xdcc/data/Network.java b/src/main/java/net/pterodactylus/xdcc/data/Network.java index 65a419f..b13df61 100644 --- a/src/main/java/net/pterodactylus/xdcc/data/Network.java +++ b/src/main/java/net/pterodactylus/xdcc/data/Network.java @@ -22,7 +22,6 @@ import static com.google.common.base.Preconditions.checkNotNull; import java.util.Collection; import com.beust.jcommander.internal.Sets; -import com.google.common.base.Objects; /** * Defines a network. @@ -89,10 +88,7 @@ public class Network { return false; } Network network = (Network) object; - if (!Objects.equal(name(), network.name())) { - return false; - } - return true; + return name().equals(network.name()); } @Override -- 2.7.4