mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
8290300: Use standard String-joining tools where applicable
Reviewed-by: naoto, rriggs, dfuchs
This commit is contained in:
parent
f9004fe443
commit
9a65524e2f
4 changed files with 6 additions and 18 deletions
|
@ -1536,11 +1536,7 @@ public class HttpURLConnection extends java.net.HttpURLConnection {
|
|||
}
|
||||
List<String> l = entry.getValue();
|
||||
if (l != null && !l.isEmpty()) {
|
||||
StringJoiner cookieValue = new StringJoiner("; ");
|
||||
for (String value : l) {
|
||||
cookieValue.add(value);
|
||||
}
|
||||
requests.add(key, cookieValue.toString());
|
||||
requests.add(key, String.join("; ", l));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue