commit | 724bbed46c9adce88c92883b4429cfac959a8660 | [log] [tgz] |
---|---|---|
author | Mårten Kongstad <amhk@google.com> | Wed Jul 19 11:56:12 2023 +0200 |
committer | Mårten Kongstad <amhk@google.com> | Wed Jul 19 11:56:12 2023 +0200 |
tree | 4f95ebe0184f908b5f3d2c8d215ef86de9462a0f | |
parent | fecc86063042caa33bb56abfae6cc1009326310e [diff] |
@FlaggedApi: improve ergonomics Make @FlaggedApi easier and less error prone to use: - Remove the default value of the `flag` field: the name of the flag is mandatory - Rename the `flag` field to `value`: this allows the name of the field to be omitted, e.g. @FlaggedApi("name-of-flag"). See [1]. References: 1. https://docs.oracle.com/javase/8/docs/technotes/guides/language/annotations.html Test: presubmit Bug: 285075515 Change-Id: I53d5c2705ddd89c4b71fd586c056ca43fb2579b4
Libraries and utilities intended for use by module and framework code.
Since modules use the code in this project, it must adhere to mainline requirements, for example, by setting min_sdk_version in Soong modules.
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.