diff options
| author | 2022-08-17 17:58:05 +0000 | |
|---|---|---|
| committer | 2022-09-14 17:06:58 +0000 | |
| commit | a597df865c27cddcdec903946d88bdb6a1067bf5 (patch) | |
| tree | 0c2092e15730d9f9386d9a76ef3cd5ccb8c2a6b4 /libs/androidfw/ResourceTimer.cpp | |
| parent | 44c0ac96b9e1c081f64f8c747641ed972734672b (diff) | |
Add @Immutable
This annotation marks an interface as effectively immutable,
enforcing through an annotation processor that it follow these
guidelines:
- Only exposes methods and/or static final constants
- Every exposed type is an @Immutable interface or otherwise immutable class
- Every method must return a type (no void methods allowed)
- All inner classes must be @Immutable interfaces
This is in preparation of making PackageState fully immutable.
As a test case it has been marked in this change but has its
errors suppressed using @Immutable.Ignore to have the build work.
Test: atest --host ImmutabilityAnnotationProcessorUnitTests
Test: m services.core.unboosted
Change-Id: I59c615a97d5a30b83a5bcace0e2cee270ea5d1d2
Diffstat (limited to 'libs/androidfw/ResourceTimer.cpp')
0 files changed, 0 insertions, 0 deletions