Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 93ed5aa5 authored by Eric Lin's avatar Eric Lin
Browse files

Refactor WCT for null and type safety.

This commit refactors the WindowContainerTransaction (WCT) class to
enhance its maintainability through improved null and type safety.

Specifically, this includes the addition of @NonNull and @Nullable
annotations to method parameters and return values throughout the class.
The @ChangeMask and @HierarchyOpType annotations are introduced to
enforce type constraints on fields that represent bitmasks and enum-like
integer values, respectively. Finally, constants are used instead of
magic numbers to clearly conveys the intent of certain checks.

Bug: 387193964
Test: atest WmTests:WindowContainerTransactionTests
Flag: EXEMPT refactor
Change-Id: I482b46641ba9e2cce840c2934cfe066872de4db4
parent 5d31679c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment