Kaydet (Commit) 94642151 authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#1326984 SBSC: String concatenation in loop using + operator

Change-Id: Ib3eddf6c121c462a09c7db310921f4f619c80b5a
üst 1c925e49
......@@ -150,7 +150,7 @@ public class _XValidatableFormComponent extends MultiMethodTest
//Get the properties being tested
private void getPropsToTest(Property[] properties)
{
String bound = "";
StringBuilder sb = new StringBuilder();
for (int i = 0; i < properties.length; i++)
{
......@@ -175,7 +175,7 @@ public class _XValidatableFormComponent extends MultiMethodTest
|| name.equals("Date")
)
{
bound = (name + ";");
sb = new StringBuilder(name + ";");
}
if (
......@@ -183,9 +183,11 @@ public class _XValidatableFormComponent extends MultiMethodTest
&& !name.equals("Enabled")
)
{
bound += (name + ";");
sb.append(name + ";");
}
}
String bound = sb.toString();
// endfor
//get a array of bound properties
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment