RFR: 8297749: Remove duplicate space in the ProtocolException message being thrown from HttpURLConnection
Daniel Fuchs
dfuchs at openjdk.org
Tue Nov 29 12:46:36 UTC 2022
On Sat, 5 Nov 2022 00:01:15 GMT, Johnny Lim <duke at openjdk.org> wrote:
> This PR removes a duplicate space in `ProtocolException` message.
src/java.base/share/classes/sun/net/www/protocol/http/HttpURLConnection.java line 1999:
> 1997: } while (redirects < maxRedirects);
> 1998:
> 1999: throw new ProtocolException("Server redirected too many times ("+ redirects + ")");
There's a missing space between " and + ; In order to avoid long lines which are a pain to review in side diffs I would suggest to reformat and add a newline there, rather than a whitespace.
-------------
PR: https://git.openjdk.org/jdk/pull/11002
More information about the net-dev
mailing list