Don’t call the accessor but access the encoding directly.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Tue, 19 Mar 2013 07:19:56 +0000 (08:19 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Tue, 19 Mar 2013 07:19:56 +0000 (08:19 +0100)
src/main/java/net/pterodactylus/sonitus/data/Metadata.java

index cb1864f..01223af 100644 (file)
@@ -206,7 +206,7 @@ public class Metadata {
                        return false;
                }
                Metadata metadata = (Metadata) object;
-               if ((metadata.channels != channels) || (metadata.frequency != frequency) || !metadata.encoding.equalsIgnoreCase(encoding())) {
+               if ((metadata.channels != channels) || (metadata.frequency != frequency) || !metadata.encoding.equalsIgnoreCase(encoding)) {
                        return false;
                }
                if (artist.equals(metadata.artist)) {