From 38ccc9ddbd7b981e9df5b532eea1681267d2ec44 Mon Sep 17 00:00:00 2001 From: Daniel Fuchs <67001856+dfuch@users.noreply.github.com> Date: Tue, 3 Sep 2024 12:20:17 +0100 Subject: [PATCH] Update src/java.base/share/classes/java/net/NetworkInterface.java --- src/java.base/share/classes/java/net/NetworkInterface.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/java.base/share/classes/java/net/NetworkInterface.java b/src/java.base/share/classes/java/net/NetworkInterface.java index 3351f5036c508..b06c13b1e1a34 100644 --- a/src/java.base/share/classes/java/net/NetworkInterface.java +++ b/src/java.base/share/classes/java/net/NetworkInterface.java @@ -397,8 +397,8 @@ 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. - * To see updates to the configuration may, or may not, require - * obtaining new instances of the interfaces. + * 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. * 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