--- old/src/java.base/share/classes/java/net/InetAddress.java 2018-11-12 15:48:19.000000000 +0000 +++ new/src/java.base/share/classes/java/net/InetAddress.java 2018-11-12 15:48:19.000000000 +0000 @@ -377,7 +377,7 @@ /** * Utility routine to check if the InetAddress is a wildcard address. - * @return a {@code boolean} indicating if the Inetaddress is + * @return a {@code boolean} indicating if the InetAddress is * a wildcard address. * @since 1.4 */ @@ -1022,7 +1022,7 @@ *

Lookup a host mapping by name. Retrieve the IP addresses * associated with a host. * - *

Search the configured hosts file for the addresses assocaited with + *

Search the configured hosts file for the addresses associated * with the specified host name. * * @param host the specified hostname @@ -1038,7 +1038,7 @@ byte addr[] = new byte[4]; ArrayList inetAddresses = null; - // lookup the file and create a list InetAddress for the specfied host + // lookup the file and create a list InetAddress for the specified host try (Scanner hostsFileScanner = new Scanner(new File(hostsFile), "UTF-8")) { while (hostsFileScanner.hasNextLine()) { hostEntry = hostsFileScanner.nextLine(); @@ -1341,7 +1341,7 @@ throw new UnknownHostException(host + ": invalid IPv6 address"); } } else if (ipv6Expected) { - // Means an IPv4 litteral between brackets! + // Means an IPv4 literal between brackets! throw new UnknownHostException("["+host+"]"); } InetAddress[] ret = new InetAddress[1]; @@ -1358,7 +1358,7 @@ return ret; } } else if (ipv6Expected) { - // We were expecting an IPv6 Litteral, but got something else + // We were expecting an IPv6 Literal, but got something else throw new UnknownHostException("["+host+"]"); } return getAllByName0(host, reqAddr, true, true);