summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author Eric Lin <ericth@google.com> 2025-01-02 12:22:31 +0800
committer Eric Lin <ericth@google.com> 2025-01-03 16:09:01 +0800
commit93ed5aa58678d681acc5b8a8c7e32996ea2ebd42 (patch)
tree3685a8b74241c7c0194ed51009f171c56b8a8387 /libs/androidfw/StringPool.cpp
parent5d31679c5af95f94e248491c1390f35605e9c97c (diff)
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
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions