mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-26 00:02:06 +01:00
sinttest: use StringUtils.appendTo(Collection, StringBuilder)
This commit is contained in:
parent
6029ba875b
commit
0cbbac90bc
1 changed files with 3 additions and 7 deletions
|
@ -33,6 +33,7 @@ import java.lang.reflect.Type;
|
||||||
import java.security.KeyManagementException;
|
import java.security.KeyManagementException;
|
||||||
import java.security.NoSuchAlgorithmException;
|
import java.security.NoSuchAlgorithmException;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
import java.util.Arrays;
|
||||||
import java.util.Collection;
|
import java.util.Collection;
|
||||||
import java.util.Collections;
|
import java.util.Collections;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
|
@ -728,13 +729,8 @@ public class SmackIntegrationTestFramework {
|
||||||
.append(method.getName())
|
.append(method.getName())
|
||||||
.append(" (")
|
.append(" (")
|
||||||
.append(testType.name());
|
.append(testType.name());
|
||||||
final String SUBDESCRIPTION_DELIMITER = ", ";
|
sb.append(", ");
|
||||||
sb.append(SUBDESCRIPTION_DELIMITER);
|
StringUtils.appendTo(Arrays.asList(subdescriptons), sb);
|
||||||
|
|
||||||
for (String subdescripton : subdescriptons) {
|
|
||||||
sb.append(subdescripton).append(SUBDESCRIPTION_DELIMITER);
|
|
||||||
}
|
|
||||||
sb.setLength(sb.length() - SUBDESCRIPTION_DELIMITER.length());
|
|
||||||
sb.append(')');
|
sb.append(')');
|
||||||
|
|
||||||
stringCache = sb.toString();
|
stringCache = sb.toString();
|
||||||
|
|
Loading…
Reference in a new issue