mirror of
https://github.com/Kunzisoft/KeePassDX.git
synced 2026-12-06 00:32:32 -08:00
Fix up entry assignment and tests.
This commit is contained in:
1 parent
1b3d634575
commit
4d96fa29e0
9 files changed
+400
-6
No files matched your search
@@ -46,8 +46,11 @@ public abstract class PwEntry implements Cloneable {
|
||||
}
|
||||
|
||||
public void assign(PwEntry source) {
|
||||
imageId = source.imageId;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
public abstract void stampLastAccess();
|
||||
|
||||
public abstract UUID getUUID();
|
||||
@@ -70,4 +73,20 @@ public abstract class PwEntry implements Cloneable {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object obj) {
|
||||
if (this == obj)
|
||||
return true;
|
||||
if (obj == null)
|
||||
return false;
|
||||
if (getClass() != obj.getClass())
|
||||
return false;
|
||||
PwEntry other = (PwEntry) obj;
|
||||
if (imageId != other.imageId)
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user