From: David ‘Bombe’ Roden Date: Tue, 19 Mar 2013 07:20:02 +0000 (+0100) Subject: Fix equals(). X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=3d073631242b121378ff9c60104170d13cab52d7;p=sonitus.git Fix equals(). --- diff --git a/src/main/java/net/pterodactylus/sonitus/data/Metadata.java b/src/main/java/net/pterodactylus/sonitus/data/Metadata.java index 01223af..d3a06c9 100644 --- a/src/main/java/net/pterodactylus/sonitus/data/Metadata.java +++ b/src/main/java/net/pterodactylus/sonitus/data/Metadata.java @@ -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;