1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-06-17 17:04:49 +02:00

sinttest: use StringUtils.appendTo(Collection, StringBuilder)

This commit is contained in:
Florian Schmaus 2020-04-04 13:03:45 +02:00
parent 6029ba875b
commit 0cbbac90bc

View file

@ -33,6 +33,7 @@ import java.lang.reflect.Type;
import java.security.KeyManagementException;
import java.security.NoSuchAlgorithmException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.Collections;
import java.util.HashMap;
@ -728,13 +729,8 @@ public class SmackIntegrationTestFramework {
.append(method.getName())
.append(" (")
.append(testType.name());
final String SUBDESCRIPTION_DELIMITER = ", ";
sb.append(SUBDESCRIPTION_DELIMITER);
for (String subdescripton : subdescriptons) {
sb.append(subdescripton).append(SUBDESCRIPTION_DELIMITER);
}
sb.setLength(sb.length() - SUBDESCRIPTION_DELIMITER.length());
sb.append(", ");
StringUtils.appendTo(Arrays.asList(subdescriptons), sb);
sb.append(')');
stringCache = sb.toString();