mirror of
https://github.com/correl/mage.git
synced 2024-12-26 19:16:54 +00:00
Refactor: Remove String Concatenation In Loop (#9217)
This commit is contained in:
parent
87908dc808
commit
6d4c422720
1 changed files with 3 additions and 3 deletions
|
@ -316,11 +316,11 @@ public abstract class CardTestPlayerAPIImpl extends MageTestPlayerBase implement
|
||||||
|
|
||||||
// check commands
|
// check commands
|
||||||
private void check(String checkName, int turnNum, PhaseStep step, TestPlayer player, String command, String... params) {
|
private void check(String checkName, int turnNum, PhaseStep step, TestPlayer player, String command, String... params) {
|
||||||
String res = CHECK_PREFIX + command;
|
StringBuilder res = new StringBuilder(CHECK_PREFIX + command);
|
||||||
for (String param : params) {
|
for (String param : params) {
|
||||||
res += CHECK_PARAM_DELIMETER + param;
|
res.append(CHECK_PARAM_DELIMETER).append(param);
|
||||||
}
|
}
|
||||||
addPlayerAction(player, checkName, turnNum, step, res);
|
addPlayerAction(player, checkName, turnNum, step, res.toString());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue