Commit 52a8bbe4 authored by Kristof Szabados's avatar Kristof Szabados
Browse files

minor optimization


Signed-off-by: Kristof Szabados's avatarKristof Szabados <Kristof.Szabados@ericsson.com>
parent 4f89e523
......@@ -455,22 +455,22 @@ pr_ExecuteSection:
pr_ExecuteSectionItem
@init {
String executeElement = "";
StringBuilder executeElement = new StringBuilder();
ExecuteItem item = new ExecuteItem();
}:
module = pr_ExecuteSectionItemModuleName
{
executeElement += $module.name;
executeElement.append($module.name);
item.setModuleName( $module.ctx );
}
( DOT
testcase = pr_ExecuteSectionItemTestcaseName
{
executeElement += "." + $testcase.name;
executeElement.append(".").append($testcase.name);
item.setTestcaseName( $testcase.ctx );
}
)?
{ mCfgParseResult.getExecuteElements().add( executeElement );
{ mCfgParseResult.getExecuteElements().add( executeElement.toString() );
item.setRoot( $ctx );
executeSectionHandler.getExecuteitems().add( item );
}
......
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