Repository navigation
Fix documentation errors in Android.Util, Android.Util.Function, Android.Util.Proto (R139, pass 3) - #2018
Conversation
- 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>
There was a problem hiding this comment.
🟢 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
IntPropertyandFloatProperty, consistent with #1941. - Replaces raw Javadoc references with managed API
creflinks. - Uses the managed name
TopLevelDomainStrwithout 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
|
@dalexsoto review |
dalexsoto
left a comment
There was a problem hiding this comment.
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.
Agent assessment
Self-reported assessment, not an independent review.
Assessed revision:
fdacebc272bd2ebbc2e83aed49db8b6b7d9be1b5↑ All new crefs resolve to existing, non-obsolete DocIds (rubber-duck check, gemini-4-argon).
↑ All 12 changed files parse as XML;
git diff --checkis 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
transferparameter (IntProperty, FloatProperty constructors): the old text said ownership of the JNI reference transfers to the instance. ForJava.Lang.Objecttypes 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). Text now matches Fix documentation errors in Android.App.PermissionUI (R060, pass 3) #1941.#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.#TOP_LEVEL_DOMAIN_STRlink targets an[Obsolete]member, so the text uses the plain managed nameTopLevelDomainStrand no cref (Patterns.java:35-40,69-74).Uncertain findings
None.
Checks
git diff --check: pass.index.xml,_filter.xmland FrameworksIndex not changed.Log.xmlis fixed.