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

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

Change-Id: Idefe2159ba5becbb7aaa5f28a422d80e29595708
üst 94642151
......@@ -298,7 +298,7 @@ public class _XMultiPropertySet 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++) {
......@@ -322,11 +322,13 @@ public class _XMultiPropertySet extends MultiMethodTest {
boolean isVoid = util.utils.isVoid(values[0]);
if ( isWritable && isNotNull && isBound && !isExcluded && !isVoid) {
bound+=name+";";
sb.append(name + ";");
}
} // endfor
String bound = sb.toString();
//get a array of bound properties
if (bound.equals("")) bound = "none";
StringTokenizer ST=new StringTokenizer(bound,";");
......
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