Skip to content
Snippets Groups Projects
Commit 1f31c82b authored by Gregor Maier's avatar Gregor Maier
Browse files

Fix: IndexedEntity.equals() wasn't symmetric.

parent 7817a9fc
No related branches found
No related tags found
No related merge requests found
......@@ -104,6 +104,9 @@ public class IndexedEntity {
if (obj == null) return false;
if (getClass() != obj.getClass()) return false;
IndexedEntity other = (IndexedEntity) obj;
if (!keyFields.equals(other.keyFields))
return false;
for (IDeviceService.DeviceField f : keyFields) {
switch (f) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment