From 9b0d988a3b07ec74ca3a934600a60d030f2bd728 Mon Sep 17 00:00:00 2001 From: Jonathan Peppers Date: Sat, 28 Nov 2026 11:58:05 -0600 Subject: [PATCH 1/3] Fix documentation errors in Org.Apache.Http.Message (R119, pass 3) - HeaderGroup.Iterator(String): returns covers the name filter. - AbstractHttpMessage.HeaderIterator(): returns covers all headers. - BasicHeaderValueParser.ParseElements: returns notes empty elements are skipped. - BasicHeaderValueParser and BasicNameValuePair: correct the transfer parameter. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> --- docs/xml/Org.Apache.Http.Message/AbstractHttpMessage.xml | 2 +- docs/xml/Org.Apache.Http.Message/BasicHeaderValueParser.xml | 4 ++-- docs/xml/Org.Apache.Http.Message/BasicNameValuePair.xml | 2 +- docs/xml/Org.Apache.Http.Message/HeaderGroup.xml | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/xml/Org.Apache.Http.Message/AbstractHttpMessage.xml b/docs/xml/Org.Apache.Http.Message/AbstractHttpMessage.xml index 6b241aa57..22a0f0af2 100644 --- a/docs/xml/Org.Apache.Http.Message/AbstractHttpMessage.xml +++ b/docs/xml/Org.Apache.Http.Message/AbstractHttpMessage.xml @@ -428,7 +428,7 @@ Returns an iterator of the headers with a given name. - An iterator that returns matching headers in the order in which they are sent over a connection. + An iterator that returns all headers of this message in the order in which they are sent over a connection. 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/Org.Apache.Http.Message/BasicHeaderValueParser.xml b/docs/xml/Org.Apache.Http.Message/BasicHeaderValueParser.xml index d6fdcf144..739090aa1 100644 --- a/docs/xml/Org.Apache.Http.Message/BasicHeaderValueParser.xml +++ b/docs/xml/Org.Apache.Http.Message/BasicHeaderValueParser.xml @@ -93,7 +93,7 @@ A JNI reference to the Java object. - Specifies whether ownership of the JNI reference transfers to this instance. + Specifies how the runtime handles the JNI reference, including its release and peer registration. Creates a managed instance that represents an existing Java object. 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. @@ -305,7 +305,7 @@ The buffer holding the header value to parse. The parser cursor containing the current position and parsing bounds. Parses a header value into elements. - All parsed header elements. + The parsed header elements. Elements that have an empty name and no value are not included. 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/Org.Apache.Http.Message/BasicNameValuePair.xml b/docs/xml/Org.Apache.Http.Message/BasicNameValuePair.xml index 05eedaab7..270bea579 100644 --- a/docs/xml/Org.Apache.Http.Message/BasicNameValuePair.xml +++ b/docs/xml/Org.Apache.Http.Message/BasicNameValuePair.xml @@ -73,7 +73,7 @@ A JNI reference to the Java object. - Specifies whether ownership of the JNI reference transfers to this instance. + Specifies how the runtime handles the JNI reference, including its release and peer registration. Creates a managed instance that represents an existing Java object. 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/Org.Apache.Http.Message/HeaderGroup.xml b/docs/xml/Org.Apache.Http.Message/HeaderGroup.xml index 00d39015e..d58248c71 100644 --- a/docs/xml/Org.Apache.Http.Message/HeaderGroup.xml +++ b/docs/xml/Org.Apache.Http.Message/HeaderGroup.xml @@ -477,7 +477,7 @@ the name of the headers over which to iterate, or null for all headers Returns an iterator over the headers with a given name in this group. - An iterator over the headers in this group. + An iterator over the headers in this group that have the specified name, or over all headers in this group if is . 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 75cca7708e3eeaac6fdb99b65cd404c957dccc00 Mon Sep 17 00:00:00 2001 From: Jonathan Peppers Date: Sat, 28 Nov 2026 12:19:43 -0600 Subject: [PATCH 2/3] Fix two unsupported return/value claims in Org.Apache.Http docs IHeaderValueParser.ParseElements: drop 'All'; the interface does not promise that every element in the buffer is parsed. HttpDateGenerator.CurrentDate: drop the null clause; getCurrentDate formats text on the first call because dateAsLong starts at 0. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> --- docs/xml/Org.Apache.Http.Message/IHeaderValueParser.xml | 2 +- docs/xml/Org.Apache.Http.Protocol/HttpDateGenerator.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/xml/Org.Apache.Http.Message/IHeaderValueParser.xml b/docs/xml/Org.Apache.Http.Message/IHeaderValueParser.xml index 98c9b9bce..9fafe68c9 100644 --- a/docs/xml/Org.Apache.Http.Message/IHeaderValueParser.xml +++ b/docs/xml/Org.Apache.Http.Message/IHeaderValueParser.xml @@ -77,7 +77,7 @@ The buffer holding the header value to parse. The parser cursor containing the current position and parsing bounds. Parses a header value into elements. - All parsed header elements. + The parsed header elements. 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/Org.Apache.Http.Protocol/HttpDateGenerator.xml b/docs/xml/Org.Apache.Http.Protocol/HttpDateGenerator.xml index 2f34b6313..666f2cbe7 100644 --- a/docs/xml/Org.Apache.Http.Protocol/HttpDateGenerator.xml +++ b/docs/xml/Org.Apache.Http.Protocol/HttpDateGenerator.xml @@ -118,7 +118,7 @@ Gets a cached HTTP date string, updating it when the system clock is more than one second ahead of the last update. - The date formatted with EEE, dd MMM yyyy HH:mm:ss zzz, the US locale, and GMT, or if no text has been generated. The cached text is updated when the current system time exceeds the last update time by more than 1,000 milliseconds. + The date formatted with EEE, dd MMM yyyy HH:mm:ss zzz, the US locale, and GMT. The cached text is updated when the current system time exceeds the last update time by more than 1,000 milliseconds. 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 b955f2129e79e3fcd6167f316fa01e3afc723be4 Mon Sep 17 00:00:00 2001 From: Jonathan Peppers Date: Sat, 28 Nov 2026 12:27:58 -0600 Subject: [PATCH 3/3] Fix parameterless iterator summaries in Org.Apache.Http.Message AbstractHttpMessage.HeaderIterator() and HeaderGroup.Iterator() take no name, but their summaries said they return headers with a given name. Use the pinned Javadoc: HttpMessage.java:166 and HeaderGroup.java:259. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> --- docs/xml/Org.Apache.Http.Message/AbstractHttpMessage.xml | 2 +- docs/xml/Org.Apache.Http.Message/HeaderGroup.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/xml/Org.Apache.Http.Message/AbstractHttpMessage.xml b/docs/xml/Org.Apache.Http.Message/AbstractHttpMessage.xml index 22a0f0af2..b72d7dacf 100644 --- a/docs/xml/Org.Apache.Http.Message/AbstractHttpMessage.xml +++ b/docs/xml/Org.Apache.Http.Message/AbstractHttpMessage.xml @@ -427,7 +427,7 @@ - Returns an iterator of the headers with a given name. + Returns an iterator of all the headers. An iterator that returns all headers of this message in the order in which they are sent over a connection. 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/Org.Apache.Http.Message/HeaderGroup.xml b/docs/xml/Org.Apache.Http.Message/HeaderGroup.xml index d58248c71..29a5eb882 100644 --- a/docs/xml/Org.Apache.Http.Message/HeaderGroup.xml +++ b/docs/xml/Org.Apache.Http.Message/HeaderGroup.xml @@ -443,7 +443,7 @@ - Returns an iterator over the headers with a given name in this group. + Returns an iterator over this group of headers. An iterator over the headers in this group. 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.