From b1ca65df11b2f4940d6fd5c1ca0c45e656b7ebe5 Mon Sep 17 00:00:00 2001 From: Daniel Fuchs <67001856+dfuch@users.noreply.github.com> Date: Tue, 3 Sep 2024 12:19:55 +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 e707c93a37aba..3351f5036c508 100644 --- a/src/java.base/share/classes/java/net/NetworkInterface.java +++ b/src/java.base/share/classes/java/net/NetworkInterface.java @@ -344,8 +344,8 @@ public static NetworkInterface getByIndex(int index) throws SocketException { * @apiNote * The returned interface instance 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 a new instance of the interface. + * 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