diff options
| author | 2024-08-29 15:35:58 +0100 | |
|---|---|---|
| committer | 2024-08-29 15:35:58 +0100 | |
| commit | 3001ce3bf5aa6cdb6ba6eeb032fe9eebf6658d62 (patch) | |
| tree | af2576f4272e94c4d44b9ea424e0d0c30cd90ab9 /java/sdk_library_test.go | |
| parent | 88d3b398469774557d040daee116b38bea0f0312 (diff) | |
Allow modules to override --error-when-new UnflaggedApi
Some `java_sdk_library` and `droidstubs` modules already specify
`--error UnflaggedApi` but they are currently ignored because they are
added before the `--error-when-new UnflaggedApi` automatically added by
Soong and Metalava uses the last setting. That means adding
`--error-when-new UnflaggedApi` in change https://r.android.com/3248013
actually reduced the severity of the issue for those modules making it
more likely that they would be missed.
This change only adds the `--error-when-new UnflaggedApi` if it does
not already appear in the metalava command.
Bug: 361582214
Test: m checkapi
Change-Id: I499183276c7520605cca7acc6e6e9ab535feaa86
Diffstat (limited to 'java/sdk_library_test.go')
0 files changed, 0 insertions, 0 deletions