| commit | 889b3c20ab3c71cafb11994190a63bdc1a13838d | [log] [tgz] |
|---|---|---|
| author | Adrian Roos <roosa@google.com> | Mon Nov 11 22:54:18 2024 +0100 |
| committer | Adrian Roos <roosa@google.com> | Tue Nov 12 16:02:22 2024 +0000 |
| tree | a2a86ce0fd2d908426d69cd88cfa514ece403b02 | |
| parent | 1f1c4d7fe584c14a0e5fd226a2b2eff28e6e5171 [diff] |
Modules: @FlaggedApi: Enforce using constants instead of literals
Enables a lint that forces using @FlaggedApi(..Flags.FLAG_FOO) instead
of @FlaggedApi("...FLAG_FOO") in source code. This avoids the potential
for typos causing APIs not to ship as intended.
Bug: 322505144
Test: make checkapi
Flag: EXEMPT lint only
Change-Id: Idb86c4c53d6f4a584504ed73204d52d7d43ee3f4
This project includes mainline build and other utility code. Any library code intended for use by modules should go in frameworks/libs/modules-utils instead.
This project uses a single source path for java code. All java code should go in the java directory with subdirectories corresponding to the java package. Android.bp files should go alongside the java source files, and should only include java source for a single java package to encourage good code hygiene.
Tests for java code should go in the javatests directory and follow the same structure.