From: David ‘Bombe’ Roden Date: Wed, 12 Jan 2011 19:41:28 +0000 (+0100) Subject: Fix validation that would prevent an owner from ever being set. X-Git-Tag: beta-freefall-0.6.2-1~106 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=32cba82f14855a61174221c010bdcad42c336694;p=Sone.git Fix validation that would prevent an owner from ever being set. --- diff --git a/src/main/java/net/pterodactylus/sone/data/Album.java b/src/main/java/net/pterodactylus/sone/data/Album.java index ca3a97e..4f52f50 100644 --- a/src/main/java/net/pterodactylus/sone/data/Album.java +++ b/src/main/java/net/pterodactylus/sone/data/Album.java @@ -100,7 +100,7 @@ public class Album implements Fingerprintable { * @return This album */ public Album setSone(Sone sone) { - Validation.begin().isNull("Current Album Owner", this.sone).isNotNull("New Album Owner", sone).check().isEqual("New Album Owner", sone, this.sone).check(); + Validation.begin().isNull("Current Album Owner", this.sone).isNotNull("New Album Owner", sone).check(); this.sone = sone; return this; }