1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-11-22 20:12:07 +01: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.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();