diff --git a/src/java.base/share/classes/java/net/NetworkInterface.java b/src/java.base/share/classes/java/net/NetworkInterface.java index 3c13fdcb0cd8a..38de9e4f570ee 100644 --- a/src/java.base/share/classes/java/net/NetworkInterface.java +++ b/src/java.base/share/classes/java/net/NetworkInterface.java @@ -280,7 +280,7 @@ public String getDisplayName() { * The returned interface instance may reflect a snapshot of the * configuration taken at the time the instance is created. * The network configuration may change at any time, and this method may need to - * be invoked again to obtain a more up to date view of the network interface. + * be invoked again to obtain a more up-to-date view of the network interface. * In particular, there is no guarantee that the same interface will be * found at the same index, or that the same network addresses will be * bound to the interface, if the network configuration of the system @@ -312,7 +312,7 @@ public static NetworkInterface getByName(String name) throws SocketException { * The returned interface instance may reflect a snapshot of the * configuration taken at the time the instance is created. * The network configuration may change at any time, and this method may need to - * be invoked again to obtain a more up to date view of the network interface. + * be invoked again to obtain a more up-to-date view of the network interface. * In particular, there is no guarantee that the same interface will be * found at the same index, or that the same network addresses will be * bound to the interface, if the network configuration of the system @@ -345,7 +345,7 @@ public static NetworkInterface getByIndex(int index) throws SocketException { * The returned interface instance may reflect a snapshot of the * configuration taken at the time the instance is created. * The network configuration may change at any time, and this method may need to - * be invoked again to obtain a more up to date view of the network interface. + * be invoked again to obtain a more up-to-date view of the network interface. * In particular, there is no guarantee that the same interface will be * found at the same index, or that the same network addresses will be * bound to the interface, if the network configuration of the system @@ -398,7 +398,7 @@ public static NetworkInterface getByInetAddress(InetAddress addr) throws SocketE * The returned interface instances may reflect a snapshot of the * configuration taken at the time the instance is created. * The network configuration may change at any time, and this method may need to - * be invoked again to obtain a more up to date view of the network interface. + * be invoked again to obtain a more up-to-date view of the network interfaces. * In particular, there is no guarantee that the same interface will be * found at the same index, or that the same network addresses will be * bound to the interface, if the network configuration of the system @@ -437,7 +437,7 @@ public static Enumeration getNetworkInterfaces() * The returned interface instances may reflect a snapshot of the * configuration taken at the time the instance is created. * The network configuration may change at any time, and this method may need to - * be invoked again to obtain a more up to date view of the network interface. + * be invoked again to obtain a more up-to-date view of the network interfaces. * In particular, there is no guarantee that the same interface will be * found at the same index, or that the same network addresses will be * bound to the interface, if the network configuration of the system