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

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

Change-Id: Ib92a893fc5c3cc89ce78733b95406d5ec415cb26
üst bc353749
......@@ -63,7 +63,7 @@ public class Summarizer
}
if (failures.size() > 0)
{
String errMsg = "";
StringBuilder errMsg = new StringBuilder();
String state = "COMPLETED.FAILED";
for (int j = 0; j < failures.size(); j++)
{
......@@ -73,12 +73,11 @@ public class Summarizer
}
else
{
errMsg +=
failures.get(j) + " - " + states.get(j) + "\r\n";
errMsg.append(failures.get(j)).append(" - ").append(states.get(j)).append("\r\n");
}
}
entry.hasErrorMsg = true;
entry.ErrorMsg = errMsg;
entry.ErrorMsg = errMsg.toString();
entry.State = state;
}
else if (entry.EntryType.equals("component") && knownIssues > 0)
......
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