Simplify equals().
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Mon, 8 Apr 2013 19:52:00 +0000 (21:52 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Mon, 8 Apr 2013 19:52:00 +0000 (21:52 +0200)
src/main/java/net/pterodactylus/xdcc/data/Network.java

index 65a419f..b13df61 100644 (file)
@@ -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