Andreas Muelder 9 лет назад
Родитель
Сommit
5579108a38

+ 3 - 11
test-plugins/org.yakindu.sct.model.sexec.test/src/org/yakindu/sct/model/sexec/transformation/test/Assert.java

@@ -191,19 +191,11 @@ public class Assert {
 	}
 
 	public static String stepListAsString(Sequence seq) {
-		String r = "";
-
+		StringBuilder r = new StringBuilder();
 		for (Step s : seq.getSteps()) {
-			// if (s instanceof Call) r += "call to : " +
-			// ((Call)s).getStep().getComment();
-			// else if (s instanceof StateSwitch) r += "switch on " +
-			// ((StateSwitch)s).getStateConfigurationIdx();
-			// else r += s;
-			//
-			r += stepAsString(s) + "; ";
+			r.append(stepAsString(s) + "; ");
 		}
-
-		return r;
+		return r.toString();
 	}
 
 	public static String stepAsString(Step step) {