Skip to content

Commit a36a8a0

Browse files
Document IsUnconditional mutation contract: only set to true
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 820f748 commit a36a8a0

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/Microsoft.Android.Sdk.TrimmableTypeMap/Scanner/JavaPeerInfo.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,9 @@ public sealed record JavaPeerInfo
6969
/// Types with component attributes ([Activity], [Service], etc.),
7070
/// custom views from layout XML, or manifest-declared components
7171
/// are unconditionally preserved (not trimmable).
72-
/// May be set after scanning when the manifest references a type
73-
/// that the scanner did not mark as unconditional.
72+
/// May be set to <c>true</c> after scanning when the manifest references a type
73+
/// that the scanner did not mark as unconditional. Should only ever be set
74+
/// to <c>true</c>, never back to <c>false</c>.
7475
/// </summary>
7576
public bool IsUnconditional { get; set; }
7677

0 commit comments

Comments
 (0)