Skip to content

Fix documentation errors in Android.Util, Android.Util.Function, Android.Util.Proto (R139, pass 3) - #2018

Merged
jonathanpeppers merged 1 commit into
mainfrom
jonathanpeppers-review-android-util-docs-r139-p3
Nov 28, 2026
Merged

jonathanpeppers merged 1 commit into
mainfrom
jonathanpeppers-review-android-util-docs-r139-p3

Conversation

@jonathanpeppers

@jonathanpeppers jonathanpeppers commented Nov 28, 2026 •

Copy link
Copy Markdown
Member

Agent assessment

Self-reported assessment, not an independent review.

Assessed revision: fdacebc272bd2ebbc2e83aed49db8b6b7d9be1b5

Dimension Assessment Rationale
Change confidence 9/10 ↑ Each fix cites a pinned source line in the review ledger.
↑ All new crefs resolve to existing, non-obsolete DocIds (rubber-duck check, gemini-4-argon).
↑ All 12 changed files parse as XML; git diff --check is clean.
↓ Copilot and human reviews are pending.

Scope

Pass-3 review item R139: Android.Util, Android.Util.Function, Android.Util.Proto (79 files). The ledger has one row per AI-changed channel: 1173 rows (945 correct, 29 error-fixed, 199 deferred generated boilerplate).

Fixes

  • transfer parameter (IntProperty, FloatProperty constructors): the old text said ownership of the JNI reference transfers to the instance. For Java.Lang.Object types 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). Text now matches Fix documentation errors in Android.App.PermissionUI (R060, pass 3) #1941.
  • Raw Javadoc link text (for example #put, #v Log.v(), Comparable#compareTo, JsonToken#NUMBER, #TYPE_DIMENSION) replaced with crefs in ArrayMap, ArraySet, AtomicFile, JsonReader, Log, LruCache, Property, Range and TypedValue. Each target is the Java {@link} target in the pinned source.
  • Patterns.TopLevelDomain: the #TOP_LEVEL_DOMAIN_STR link targets an [Obsolete] member, so the text uses the plain managed name TopLevelDomainStr and no cref (Patterns.java:35-40,69-74).

Uncertain findings

None.

Checks

  • XML parse of all changed files: pass.
  • git diff --check: pass.
  • No new "To be added" text; index.xml, _filter.xml and FrameworksIndex not changed.
  • Rubber-duck review (gemini-4-argon): no blocking issues. Its whitespace finding in Log.xml is fixed.

- IntProperty, FloatProperty: correct the transfer parameter text.
- Replace raw Javadoc #member link text with crefs in ArrayMap, ArraySet,
  AtomicFile, JsonReader, Log, LruCache, Patterns, Property, Range and
  TypedValue.
- Patterns: remove a cref to an obsolete member.

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

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

There are no active review issues for this documentation-only update clarifying JNI reference handling and improving managed API links.

No open issues 🎉

What changed in this PR

This documentation-only PR corrects JNI reference-handling descriptions and improves managed API links across 12 Android.Util files as part of the R139 pass-3 review. It does not change runtime behavior.

Changes:

  • Clarifies JNI reference release and peer registration for IntProperty and FloatProperty, consistent with #1941.
  • Replaces raw Javadoc references with managed API cref links.
  • Uses the managed name TopLevelDomainStr without linking to the obsolete member.
File Description
docs/​xml/​Android.Util/​TypedValue.xml Links dimension and fraction types and conversion methods.
docs/​xml/​Android.Util/​Range.xml Clarifies endpoint ordering and links CompareTo.
docs/​xml/​Android.Util/​Property.xml Links property getter and setter methods.
docs/​xml/​Android.Util/​Patterns.xml Replaces a Java constant reference with its managed name.
docs/​xml/​Android.Util/​LruCache.xml Links cache methods in return descriptions.
docs/​xml/​Android.Util/​Log.xml Links managed logging methods.
docs/​xml/​Android.Util/​JsonReader.xml Links the numeric token type in integer-reading remarks.
docs/​xml/​Android.Util/​IntProperty.xml Corrects the JNI transfer parameter description.
docs/​xml/​Android.Util/​FloatProperty.xml Corrects the JNI transfer parameter description.
docs/​xml/​Android.Util/​AtomicFile.xml Links write completion and failure methods.
docs/​xml/​Android.Util/​ArraySet.xml Links add and remove methods in bulk-operation documentation.
docs/​xml/​Android.Util/​ArrayMap.xml Links entry, iterator, and insertion APIs.

Review effort: Balanced

@jonathanpeppers

Copy link
Copy Markdown
Member Author

@dalexsoto review

@dalexsoto dalexsoto left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Reviewed at fdacebc. All 12 changed Android.Util XML files parse, and every new cref resolves to an existing DocId at this head. Each cref matches the original Javadoc {@link} target in AOSP (android-15.0.0_r1). The IntProperty/FloatProperty transfer wording matches dotnet/android@9bc18c75 SetHandle/JNIEnv behavior: the incoming handle is released according to transfer, and peer registration follows its DoNotRegister bit. The Patterns deprecation note correctly names TopLevelDomainStr. The target-only changes since the merge base touch none of these files or cref targets. No blocking issues found.

@jonathanpeppers
jonathanpeppers merged commit a2debe1 into main Nov 28, 2026
4 checks passed
@jonathanpeppers
jonathanpeppers deleted the jonathanpeppers-review-android-util-docs-r139-p3 branch November 28, 2026 21:59
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.

3 participants