From ceb1d504627949af6557c3d2463c9a10707b02b4 Mon Sep 17 00:00:00 2001 From: Jonathan Peppers Date: Fri, 14 Aug 2026 03:12:47 -0500 Subject: [PATCH 1/2] Document NIO channel addresses Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> --- docs/xml/Java.Nio.Channels/DatagramChannel.xml | 18 ++++++++++++++---- .../Java.Nio.Channels/ServerSocketChannel.xml | 9 +++++++-- docs/xml/Java.Nio.Channels/SocketChannel.xml | 18 ++++++++++++++---- 3 files changed, 35 insertions(+), 10 deletions(-) diff --git a/docs/xml/Java.Nio.Channels/DatagramChannel.xml b/docs/xml/Java.Nio.Channels/DatagramChannel.xml index decfe5a72..851e2a029 100644 --- a/docs/xml/Java.Nio.Channels/DatagramChannel.xml +++ b/docs/xml/Java.Nio.Channels/DatagramChannel.xml @@ -480,9 +480,14 @@ Java.Net.SocketAddress - To be added. - To be added. + Returns the socket address that this channel's socket is bound to, or null if the socket is not bound. + The socket address that this channel's socket is bound to, or null if the socket is not bound. + + + Java documentation for java.nio.channels.DatagramChannel.getLocalAddress(). + + Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License. @@ -920,9 +925,14 @@ Java.Net.SocketAddress - To be added. - To be added. + Returns the remote address to which this channel's socket is connected. + The remote address to which this channel's socket is connected, or null if the socket is not connected. + + + Java documentation for java.nio.channels.DatagramChannel.getRemoteAddress(). + + Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License. diff --git a/docs/xml/Java.Nio.Channels/ServerSocketChannel.xml b/docs/xml/Java.Nio.Channels/ServerSocketChannel.xml index 4d82affce..b3630a194 100644 --- a/docs/xml/Java.Nio.Channels/ServerSocketChannel.xml +++ b/docs/xml/Java.Nio.Channels/ServerSocketChannel.xml @@ -394,9 +394,14 @@ Java.Net.SocketAddress - To be added. - To be added. + Returns the socket address that this channel's socket is bound to, or null if the socket is not bound. + The socket address that this channel's socket is bound to, or null if the socket is not bound. + + + Java documentation for java.nio.channels.ServerSocketChannel.getLocalAddress(). + + Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License. diff --git a/docs/xml/Java.Nio.Channels/SocketChannel.xml b/docs/xml/Java.Nio.Channels/SocketChannel.xml index 3d19953f4..8a06d4413 100644 --- a/docs/xml/Java.Nio.Channels/SocketChannel.xml +++ b/docs/xml/Java.Nio.Channels/SocketChannel.xml @@ -566,9 +566,14 @@ Java.Net.SocketAddress - To be added. - To be added. + Returns the socket address that this channel's socket is bound to, or null if the socket is not bound. + The socket address that this channel's socket is bound to, or null if the socket is not bound. + + + Java documentation for java.nio.channels.SocketChannel.getLocalAddress(). + + Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License. @@ -873,9 +878,14 @@ Java.Net.SocketAddress - To be added. - To be added. + Returns the remote address to which this channel's socket is connected. + The remote address to which this channel's socket is connected, or null if the socket is not connected. + + + Java documentation for java.nio.channels.SocketChannel.getRemoteAddress(). + + Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License. From 55be827dfa48eee37283d80ae282447cb28a960c Mon Sep 17 00:00:00 2001 From: Jonathan Peppers Date: Fri, 14 Aug 2026 03:23:26 -0500 Subject: [PATCH 2/2] Clarify NIO remote address nullability Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> --- docs/xml/Java.Nio.Channels/DatagramChannel.xml | 2 +- docs/xml/Java.Nio.Channels/SocketChannel.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/xml/Java.Nio.Channels/DatagramChannel.xml b/docs/xml/Java.Nio.Channels/DatagramChannel.xml index 851e2a029..574bc8289 100644 --- a/docs/xml/Java.Nio.Channels/DatagramChannel.xml +++ b/docs/xml/Java.Nio.Channels/DatagramChannel.xml @@ -925,7 +925,7 @@ Java.Net.SocketAddress - Returns the remote address to which this channel's socket is connected. + Returns the remote address to which this channel's socket is connected, or null if the socket is not connected. The remote address to which this channel's socket is connected, or null if the socket is not connected. diff --git a/docs/xml/Java.Nio.Channels/SocketChannel.xml b/docs/xml/Java.Nio.Channels/SocketChannel.xml index 8a06d4413..c4f332fdb 100644 --- a/docs/xml/Java.Nio.Channels/SocketChannel.xml +++ b/docs/xml/Java.Nio.Channels/SocketChannel.xml @@ -878,7 +878,7 @@ Java.Net.SocketAddress - Returns the remote address to which this channel's socket is connected. + Returns the remote address to which this channel's socket is connected, or null if the socket is not connected. The remote address to which this channel's socket is connected, or null if the socket is not connected.