Closed Bug 1862402 Opened 1 year ago Closed 1 year ago

Consider adding @Immutabe annotation on AnalysisPresent

Categories

(Fenix :: Shopping, task, P2)

All
Android
task

Tracking

(firefox121 fixed)

RESOLVED FIXED
121 Branch
Tracking Status
firefox121 --- fixed

People

(Reporter: rsainani, Assigned: rsainani)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

Since AnalysisPresent uses java collections Apis (List and Set) which are mutable, compose compiler needs extra guidance from the users to understand that this object is indeed immutable.

Follow the the stability docs to diagnose and fix this issue. In the compiler reports, functions that uses this object are marked as non-skippable (aka it will always be composed even if highlights do not change) and AnalysisPresent is marked as unstable

After adding Immutable, notice that this object will be marked as stable and composables using this object directly will be marked skippable.

Note that this is not the ideal fix, but a step towards reducing recompositions. The better fix is suggested in Bug 1862401

Severity: -- → N/A
Priority: -- → P2
Assignee: nobody → rsainani
Status: NEW → ASSIGNED
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Flags: qe-verify+
Resolution: --- → FIXED
Target Milestone: --- → 121 Branch
Flags: qe-verify+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: