On Thu, 10 Mar 2022 10:48:09 GMT, Michael McMahon <micha...@openjdk.org> wrote:

>> Maybe `String.trim()` should be called on each element after splitting 
>> instead: you want to remove spaces before and after commas, not necessarily 
>> spaces within a name. "MD 5, SHA-256" probably shouldn't be parsed as 
>> "MD5,SHA-256".
>
> Okay.

`s.n.w.p.h.HttpURLConnection::schemesListToSet` uses `list.split("\\s*,\\s*")` 
which ignores multiple consecutive spaces as well. Can we make it a helper 
method somewhere?

-------------

PR: https://git.openjdk.java.net/jdk/pull/7688

Reply via email to