Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
dfuch committed Sep 3, 2024
1 parent faf3730 commit d5c7710
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/java.base/share/classes/java/net/NetworkInterface.java
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -437,7 +437,7 @@ public static Enumeration<NetworkInterface> 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
Expand Down

0 comments on commit d5c7710

Please sign in to comment.