mirror of
https://github.com/Kunzisoft/KeePassDX.git
synced 2025-12-04 15:49:33 +01:00
Fix errors highlight by @gaul fb715950a7
This commit is contained in:
@@ -57,7 +57,7 @@ public class EntrySearchV4 {
|
||||
|
||||
boolean negate = false;
|
||||
if (sp.searchString.startsWith("-")) {
|
||||
sp.searchString.substring(1); // TODO Verify bug or no need ?
|
||||
sp.searchString = sp.searchString.substring(1);
|
||||
negate = sp.searchString.length() > 0;
|
||||
}
|
||||
|
||||
|
||||
@@ -687,8 +687,7 @@ public class PwDatabaseV4 extends PwDatabase<PwGroupV4, PwEntryV4> {
|
||||
@Override
|
||||
public void undoDeleteEntry(PwEntryV4 entry, PwGroupV4 origParent) {
|
||||
super.undoDeleteEntry(entry, origParent);
|
||||
// TODO undo delete entry
|
||||
deletedObjects.remove(entry);
|
||||
deletedObjects.remove(new PwDeletedObject(entry.getUUID()));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -349,7 +349,7 @@ public class PwDbHeaderV4 extends PwDbHeader {
|
||||
}
|
||||
|
||||
public static boolean matchesHeader(int sig1, int sig2) {
|
||||
return (sig1 == PWM_DBSIG_1) && ( (sig2 == DBSIG_PRE2) || (sig2 == DBSIG_2) ); // TODO verify add DBSIG_PRE2
|
||||
return (sig1 == PWM_DBSIG_1) && ( (sig2 == DBSIG_PRE2) || (sig2 == DBSIG_2) );
|
||||
}
|
||||
|
||||
public static byte[] computeHeaderHmac(byte[] header, byte[] key) throws IOException{
|
||||
|
||||
@@ -76,15 +76,19 @@ public class EntrySearchStringIteratorV3 extends EntrySearchStringIterator {
|
||||
switch (current) {
|
||||
case title:
|
||||
found = sp.searchInTitles;
|
||||
break;
|
||||
|
||||
case url:
|
||||
found = sp.searchInUrls;
|
||||
break;
|
||||
|
||||
case username:
|
||||
found = sp.searchInUserNames;
|
||||
break;
|
||||
|
||||
case comment:
|
||||
found = sp.searchInNotes;
|
||||
break;
|
||||
|
||||
default:
|
||||
found = true;
|
||||
|
||||
@@ -957,7 +957,7 @@ public class ImporterV4 extends Importer {
|
||||
ReadUnknown(xpp);
|
||||
}
|
||||
|
||||
assert(xpp.getName() == unknownName);
|
||||
assert(xpp.getName().equals(unknownName));
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user