Fixed the issue where you can add the same word twice.

This commit is contained in:
top19 2020-05-01 09:36:48 +01:00
parent 0bcd37a860
commit ea4dc91914

View file

@ -99,8 +99,8 @@ public class DictionaryEntry {
@Override
public boolean equals(Object entry) {
DictionaryEntry otherEntry = (DictionaryEntry) entry;
return otherEntry.getEnglish().equals(this.getEnglish()) &&
otherEntry.getWelsh().equals(this.getWelsh()) &&
return otherEntry.getEnglish().equalsIgnoreCase(this.getEnglish()) &&
otherEntry.getWelsh().equalsIgnoreCase(this.getWelsh()) &&
otherEntry.getWordType().equals(this.getWordType());
}
}