Skip to content

Fix documentation errors in Android.Icu.Text (R145, pass 3) - #2023

Open
jonathanpeppers wants to merge 1 commit into
mainfrom
jonathanpeppers-review-android-icu-text-docs-r145
Open

jonathanpeppers wants to merge 1 commit into
mainfrom
jonathanpeppers-review-android-icu-text-docs-r145

Conversation

@jonathanpeppers

Copy link
Copy Markdown
Member

Agent assessment

Self-reported assessment, not an independent review.

Assessed revision: c7b5b2cf192125075fdd19e6b15185410b41f33f

Dimension Assessment Rationale
Change confidence 9/10 ↑ Each fix cites pinned source lines (source-37.2_r01, dotnet/android@9bc18c75).
↑ All 17 changed XML files parse; git diff --check is clean.
↑ gemini-4-argon rubber-duck review found no blocking issues.
↓ Copilot review is pending.

Pass-3 review of the AI-authored documentation in Android.Icu.Text (41 files). I reviewed 1309 changed channels: 234 are binding boilerplate (out of scope), 1075 are in scope (667 checked one by one, 408 are exact verbatim Javadoc matches). This PR fixes 20 blocks in 17 files. There are 0 uncertain findings.

Fixes

  • transfer parameter (15 Java.Lang.Object types): "Specifies whether ownership of the JNI reference transfers to this instance" is wrong. The peer makes its own reference; transfer selects deletion of the incoming reference and peer registration (dotnet/android@9bc18c75 Object.cs:110-118, JNIEnv.cs:360-393). Wording as in Fix documentation errors in Android.App.PermissionUI (R060, pass 3) #1941.
  • transfer parameter (StringPrepParseException, a Throwable): transfer controls release only (Throwable.cs:99-110). Wording as in Fix documentation errors in Android.Health.Connect (R093, pass 3) #1972.
  • BufferOverflowError (StringPrepParseException and StringPrepParseExceptionError): the text claimed Punycode reports this code. Only the declaration uses code 9 (StringPrepParseException.java:53); Punycode overflow reports ILLEGAL_CHAR_FOUND (impl/Punycode.java:345-391).
  • Transliterator.FinishTransliteration index: the text named transliterate(Replaceable), an overload that has no Position parameter. It now names the incremental Transliterate overloads (Transliterator.java:812, 857, 873, 884-890).
  • UnicodeSet.Clone returns: clone() returns the same instance when the set is frozen, else an unfrozen copy (UnicodeSet.java:518-522, 544-555, 4157-4158).

Pass-2 uncertain items (#1836)

  • BufferOverflowError: resolved, fixed above.
  • VerificationError: the text states only the meaning, which impl/IDNA2003.java:353-361 supports. Kept.

Checks

  • Every changed XML file parses; BOM and CRLF line endings kept.
  • git diff --check is clean; no added "To be added" or raw {@link} text.
  • docs/xml/index.xml is not changed.

- Correct the transfer parameter text on 16 JNI constructors.
- Remove the unsupported Punycode claim from BufferOverflowError.
- Correct the FinishTransliteration index parameter text.
- Correct the UnicodeSet.Clone return text for frozen sets.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings November 28, 2026 22:52
@jonathanpeppers
jonathanpeppers enabled auto-merge (squash) November 28, 2026 22:52

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues are reported for the Android.Icu.Text documentation corrections.

No open issues 🎉

What changed in this PR

Corrects 20 documentation blocks across 17 Android.Icu.Text reference files, continuing the pass-3 accuracy review of the .NET Android bindings. No runtime code changes are included.

Changes:

  • Clarifies JNI reference handling in 16 constructors, distinguishing object peer registration from exception reference release.
  • Removes the incorrect Punycode-specific explanation of BufferOverflowError.
  • Corrects incremental transliteration state guidance and documents frozen-instance reuse by UnicodeSet.Clone.
File Description
docs/​xml/​Android.Icu.Text/​UnicodeSetSpanner.xml Clarifies JNI reference handling.
docs/​xml/​Android.Icu.Text/​UnicodeSetIterator.xml Clarifies JNI reference handling.
docs/​xml/​Android.Icu.Text/​UnicodeSet+EntryRange.xml Clarifies JNI reference handling.
docs/​xml/​Android.Icu.Text/​UnicodeSet.xml Clarifies JNI handling and frozen-set clone behavior.
docs/​xml/​Android.Icu.Text/​UnicodeFilter.xml Clarifies JNI reference handling.
docs/​xml/​Android.Icu.Text/​UFormat.xml Clarifies JNI reference handling.
docs/​xml/​Android.Icu.Text/​UCharacterIterator.xml Clarifies JNI reference handling.
docs/​xml/​Android.Icu.Text/​Transliterator+Position.xml Clarifies JNI reference handling.
docs/​xml/​Android.Icu.Text/​Transliterator.xml Clarifies JNI handling and completion-state parameter.
docs/​xml/​Android.Icu.Text/​TimeZoneNames.xml Clarifies JNI reference handling.
docs/​xml/​Android.Icu.Text/​TimeZoneFormat.xml Clarifies JNI reference handling.
docs/​xml/​Android.Icu.Text/​StringPrepParseExceptionError.xml Revises buffer-overflow error description.
docs/​xml/​Android.Icu.Text/​StringPrepParseException.xml Clarifies exception reference release and buffer-overflow description.
docs/​xml/​Android.Icu.Text/​SimpleDateFormat.xml Clarifies JNI reference handling.
docs/​xml/​Android.Icu.Text/​SelectFormat.xml Clarifies JNI reference handling.
docs/​xml/​Android.Icu.Text/​SearchIterator.xml Clarifies JNI reference handling.
docs/​xml/​Android.Icu.Text/​RelativeDateTimeFormatter+FormattedRelativeDateTime.xml Clarifies JNI reference handling.

Review effort: Balanced

@jonathanpeppers

Copy link
Copy Markdown
Member Author

@dalexsoto review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants