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

Change-Id: Ib92a893fc5c3cc89ce78733b95406d5ec415cb26
This commit is contained in:
Caolán McNamara 2015-12-30 14:47:10 +00:00
parent bc353749e6
commit 9c0539ad40

View file

@ -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)