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;
|
||||
for(String value: values){
|
||||
String thisValidateMsg = validate(validationType,value);
|
||||
if(validateMsg != null && thisValidateMsg != null) {
|
||||
if (thisValidateMsg != null) {
|
||||
if (validateMsg != null) {
|
||||
validateMsg.append(", ").append(thisValidateMsg);
|
||||
} else {
|
||||
validateMsg = new StringBuilder(thisValidateMsg);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
if( validateMsg != null) {
|
||||
|
|
Loading…
Add table
Reference in a new issue