StringBuilder bug fix
This commit is contained in:
parent
ec1feee076
commit
99efe2a1cd
1 changed files with 7 additions and 6 deletions
|
@ -117,12 +117,13 @@ public class BasicValidationVTwo {
|
|||
break;
|
||||
}
|
||||
String thisValidateMsg = validate(validationType,value);
|
||||
if(validateMsg != null && thisValidateMsg != null) {
|
||||
validateMsg.append(", ").append(thisValidateMsg);
|
||||
} else {
|
||||
validateMsg = new StringBuilder(thisValidateMsg);
|
||||
|
||||
}
|
||||
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