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: ...@@ -455,22 +455,22 @@ pr_ExecuteSection:
pr_ExecuteSectionItem pr_ExecuteSectionItem
@init { @init {
String executeElement = ""; StringBuilder executeElement = new StringBuilder();
ExecuteItem item = new ExecuteItem(); ExecuteItem item = new ExecuteItem();
}: }:
module = pr_ExecuteSectionItemModuleName module = pr_ExecuteSectionItemModuleName
{ {
executeElement += $module.name; executeElement.append($module.name);
item.setModuleName( $module.ctx ); item.setModuleName( $module.ctx );
} }
( DOT ( DOT
testcase = pr_ExecuteSectionItemTestcaseName testcase = pr_ExecuteSectionItemTestcaseName
{ {
executeElement += "." + $testcase.name; executeElement.append(".").append($testcase.name);
item.setTestcaseName( $testcase.ctx ); item.setTestcaseName( $testcase.ctx );
} }
)? )?
{ mCfgParseResult.getExecuteElements().add( executeElement ); { mCfgParseResult.getExecuteElements().add( executeElement.toString() );
item.setRoot( $ctx ); item.setRoot( $ctx );
executeSectionHandler.getExecuteitems().add( item ); 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