Fix equals().
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Tue, 19 Mar 2013 07:20:02 +0000 (08:20 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Tue, 19 Mar 2013 07:20:02 +0000 (08:20 +0100)
src/main/java/net/pterodactylus/sonitus/data/Metadata.java

index 01223af..d3a06c9 100644 (file)
@@ -209,10 +209,10 @@ public class Metadata {
                if ((metadata.channels != channels) || (metadata.frequency != frequency) || !metadata.encoding.equalsIgnoreCase(encoding)) {
                        return false;
                }
-               if (artist.equals(metadata.artist)) {
+               if (!artist.equals(metadata.artist)) {
                        return false;
                }
-               if (name.equals(metadata.name)) {
+               if (!name.equals(metadata.name)) {
                        return false;
                }
                return true;