From 3d073631242b121378ff9c60104170d13cab52d7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Tue, 19 Mar 2013 08:20:02 +0100 Subject: [PATCH] Fix equals(). --- src/main/java/net/pterodactylus/sonitus/data/Metadata.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.7.4