On Thu, 29 Jul 2021 10:22:51 GMT, Julia Boes <[email protected]> wrote:
> This is a minor change that updates
> `sun.net.httpserver.HttpConnection::toString` to never return null.
>
> Testing: tier 1-3 all clear
src/jdk.httpserver/share/classes/sun/net/httpserver/HttpConnection.java line 69:
> 67:
> 68: public String toString() {
> 69: final var sb = new
> StringBuilder(HttpConnection.class.getSimpleName());
Why not simplify into `new StringBuilder(getClass().getSimpleName());` ?
-------------
PR: https://git.openjdk.java.net/jdk/pull/4928