A suggestion, if I may ...
Consider using the term “resolver” instead of “name service,” especially
in the names of the SPI classes and interfaces.
That would avoid confusing the service of looking up names and addresses
with the service of providing a service to look up names and addresses.
That
https://openjdk.java.net/jeps/418
Summary: Define a service-provider interface (SPI) for host name
and address resolution, so that java.net.InetAddress can make use of
resolvers other than the platform's built-in resolver.
- Mark
On Wed, 1 Sep 2021 07:37:53 GMT, Andrey Turbanov
wrote:
> There are few places in code where manual while loop is used with Iterator to
> iterate over Collection.
> Instead of manual while cycles it's preferred to use enhanced-for cycle
> instead: it's less verbose, makes code easier to read a