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;
|
return true;
|
||||||
if (obj == null)
|
if (obj == null)
|
||||||
return false;
|
return false;
|
||||||
if (getClass() != obj.getClass())
|
if (!(obj instanceof Recording))
|
||||||
return false;
|
return false;
|
||||||
Recording other = (Recording) obj;
|
Recording other = (Recording) obj;
|
||||||
if (id == null) {
|
if (getId() == null) {
|
||||||
if (other.id != null)
|
if (other.getId() != null)
|
||||||
return false;
|
return false;
|
||||||
} else if (!id.equals(other.id))
|
} else if (!getId().equals(other.getId()))
|
||||||
return false;
|
return false;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue