StringBuilder bug fix
This commit is contained in:
parent
a55d8bc129
commit
351e363047
1 changed files with 5 additions and 4 deletions
|
@ -60,11 +60,12 @@ public class BasicValidationVTwo {
|
||||||
StringBuilder validateMsg = null;
|
StringBuilder validateMsg = null;
|
||||||
for(String value: values){
|
for(String value: values){
|
||||||
String thisValidateMsg = validate(validationType,value);
|
String thisValidateMsg = validate(validationType,value);
|
||||||
if(validateMsg != null && thisValidateMsg != null) {
|
if (thisValidateMsg != null) {
|
||||||
validateMsg.append(", ").append(thisValidateMsg);
|
if (validateMsg != null) {
|
||||||
|
validateMsg.append(", ").append(thisValidateMsg);
|
||||||
} else {
|
} else {
|
||||||
validateMsg = new StringBuilder(thisValidateMsg);
|
validateMsg = new StringBuilder(thisValidateMsg);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if( validateMsg != null) {
|
if( validateMsg != null) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue