Merge remote-tracking branch 'origin/master'

This commit is contained in:
law39 2020-05-01 13:04:27 +01:00
commit b17a689341

View file

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