StringBuilder bug fix
This commit is contained in:
parent
ec1feee076
commit
99efe2a1cd
1 changed files with 7 additions and 6 deletions
|
@ -117,11 +117,12 @@ public class BasicValidationVTwo {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
String thisValidateMsg = validate(validationType,value);
|
String thisValidateMsg = validate(validationType,value);
|
||||||
if(validateMsg != null && thisValidateMsg != null) {
|
if (thisValidateMsg != null) {
|
||||||
|
if (validateMsg != null) {
|
||||||
validateMsg.append(", ").append(thisValidateMsg);
|
validateMsg.append(", ").append(thisValidateMsg);
|
||||||
} else {
|
} else {
|
||||||
validateMsg = new StringBuilder(thisValidateMsg);
|
validateMsg = new StringBuilder(thisValidateMsg);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue