From: David ‘Bombe’ Roden Date: Mon, 8 Apr 2013 19:52:00 +0000 (+0200) Subject: Simplify equals(). X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=513a37f47b73718135925fc6bfe60f52d673c774;p=xudocci.git Simplify equals(). --- 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