Repository navigation
Fix documentation errors in Android.Icu.Text (R145, pass 3) - #2023
Open
jonathanpeppers wants to merge 1 commit into
Open
jonathanpeppers wants to merge 1 commit into
jonathanpeppers wants to merge 1 commit into
Conversation
- 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>
There was a problem hiding this comment.
🟢 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
Member
Author
|
@dalexsoto review |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Agent assessment
Self-reported assessment, not an independent review.
Assessed revision:
c7b5b2cf192125075fdd19e6b15185410b41f33f↑ All 17 changed XML files parse;
git diff --checkis 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
transferparameter (15 Java.Lang.Object types): "Specifies whether ownership of the JNI reference transfers to this instance" is wrong. The peer makes its own reference;transferselects deletion of the incoming reference and peer registration (dotnet/android@9bc18c75Object.cs:110-118,JNIEnv.cs:360-393). Wording as in Fix documentation errors in Android.App.PermissionUI (R060, pass 3) #1941.transferparameter (StringPrepParseException, a Throwable):transfercontrols 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 reportsILLEGAL_CHAR_FOUND(impl/Punycode.java:345-391).Transliterator.FinishTransliterationindex: the text namedtransliterate(Replaceable), an overload that has noPositionparameter. It now names the incrementalTransliterateoverloads (Transliterator.java:812, 857, 873, 884-890).UnicodeSet.Clonereturns: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, whichimpl/IDNA2003.java:353-361supports. Kept.Checks
git diff --checkis clean; no added "To be added" or raw{@link}text.docs/xml/index.xmlis not changed.