Fix bug in Recording.equals
This commit is contained in:
parent
f7775b4671
commit
66ba857b82
|
@ -232,13 +232,13 @@ public class Recording implements Serializable {
|
|||
return true;
|
||||
if (obj == null)
|
||||
return false;
|
||||
if (getClass() != obj.getClass())
|
||||
if (!(obj instanceof Recording))
|
||||
return false;
|
||||
Recording other = (Recording) obj;
|
||||
if (id == null) {
|
||||
if (other.id != null)
|
||||
if (getId() == null) {
|
||||
if (other.getId() != null)
|
||||
return false;
|
||||
} else if (!id.equals(other.id))
|
||||
} else if (!getId().equals(other.getId()))
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue