Fixed the issue where you can add the same word twice.
This commit is contained in:
parent
0bcd37a860
commit
ea4dc91914
1 changed files with 2 additions and 2 deletions
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
|
Reference in a new issue