Added trim to Dictionary Entry
Added trim to Dictionary Entry, this removes white space preceding and following strings. This has been applied to the English, Welsh and Word Type Strings.
This commit is contained in:
parent
b17eedcaae
commit
ace0217f62
1 changed files with 3 additions and 3 deletions
|
@ -57,7 +57,7 @@ public class DictionaryEntry {
|
|||
}
|
||||
|
||||
public void setEnglish(String english) {
|
||||
this.english = english;
|
||||
this.english = english.trim();
|
||||
}
|
||||
|
||||
public String getWelsh() {
|
||||
|
@ -65,7 +65,7 @@ public class DictionaryEntry {
|
|||
}
|
||||
|
||||
public void setWelsh(String welsh) {
|
||||
this.welsh = welsh;
|
||||
this.welsh = welsh.trim();
|
||||
}
|
||||
|
||||
public String getWordType() {
|
||||
|
@ -73,7 +73,7 @@ public class DictionaryEntry {
|
|||
}
|
||||
|
||||
public void setWordType(String wordType) {
|
||||
this.wordType = wordType;
|
||||
this.wordType = wordType.trim();
|
||||
}
|
||||
|
||||
public Boolean isPracticeWord() {
|
||||
|
|
Reference in a new issue