coverity#1326994 SBSC: String concatenation in loop using + operator
Change-Id: I4fdd7388012b8773b59a69589c06d95d5d51f389
This commit is contained in:
@@ -147,14 +147,15 @@ public class QueryMetaData extends CommandMetaData
|
||||
ArrayList<String> CommandNames = new ArrayList<String>(1);
|
||||
for (int i = 0; i < _FieldNames.length; i++)
|
||||
{
|
||||
String CurCommandName = PropertyNames.EMPTY_STRING;
|
||||
String[] MetaList = JavaTools.ArrayoutofString(_FieldNames[i], ".");
|
||||
if (MetaList.length > 1)
|
||||
{
|
||||
StringBuilder sb = new StringBuilder(PropertyNames.EMPTY_STRING);
|
||||
for (int a = 0; a < MetaList.length - 1; a++)
|
||||
{
|
||||
CurCommandName += MetaList[a];
|
||||
sb.append(MetaList[a]);
|
||||
}
|
||||
String CurCommandName = sb.toString();
|
||||
if (!CommandNames.contains(CurCommandName))
|
||||
{
|
||||
CommandNames.add(CurCommandName);
|
||||
@@ -166,8 +167,6 @@ public class QueryMetaData extends CommandMetaData
|
||||
return sIncludedCommandNames;
|
||||
}
|
||||
|
||||
|
||||
|
||||
public void initializeFieldTitleSet()
|
||||
{
|
||||
try
|
||||
|
Reference in New Issue
Block a user