On Tue, 8 Dec 2020 18:01:20 GMT, Daniel Fuchs <dfu...@openjdk.org> wrote:
>> Mahendra Chhipa has updated the pull request incrementally with one >> additional commit since the last revision: >> >> Implemented the review comments. > > test/lib/jdk/test/lib/net/SimpleHttpServer.java line 83: > >> 81: //let the server use wild card address >> 82: inetAddress = null; >> 83: } > > Ideally, all constructors should all delegate to a single constructor that > would do all the assignments. Maybe investigate a constructor that takes an > InetSocketAddress (that would contain both InetAddress and port) Now Constructor takes InetSocketAddress as parameter, so now no need of multiple constructors. Thanks for the advice. > test/lib/jdk/test/lib/net/SimpleHttpServer.java line 63: > >> 61: httpServer = HttpServer.create(); >> 62: //let the server use wild card address >> 63: inetAddress = null; > > can this constructor simply call `this(null, context, docRoot)` Now Constructor takes InetSocketAddress as parameter, so now no need of multiple constructors. Thanks for the advice. ------------- PR: https://git.openjdk.java.net/jdk/pull/1632