diff options
| author | 2020-12-31 08:53:18 +0000 | |
|---|---|---|
| committer | 2020-12-31 08:53:18 +0000 | |
| commit | 6b8c40036cd88cbbb6b51305f0bd9e710743c770 (patch) | |
| tree | d5a3e0b533a1576374c8762642051287163fa39c /java/droiddoc.go | |
| parent | 18417cbd72febc0e35b0780c1f1d012ab526f688 (diff) | |
| parent | e87b03d1bb837dfac724376447a0e07a4ef8ccc3 (diff) | |
Merge "Set previous_api correctly for java_sdk_library"
Diffstat (limited to 'java/droiddoc.go')
| -rw-r--r-- | java/droiddoc.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/java/droiddoc.go b/java/droiddoc.go index cbca12a76..f54b51711 100644 --- a/java/droiddoc.go +++ b/java/droiddoc.go @@ -1082,6 +1082,10 @@ func (d *Droidstubs) DepsMutator(ctx android.BottomUpMutatorContext) { // If requested clear any properties that provide information about the latest version // of an API and which reference non-existent modules. if Bool(d.properties.Check_api.Ignore_missing_latest_api) { + previousApi := android.SrcIsModule(String(d.properties.Previous_api)) + if previousApi != "" && !ctx.OtherModuleExists(previousApi) { + d.properties.Previous_api = nil + } ignoreMissingModules(ctx, &d.properties.Check_api.Last_released) // If the new_since references a module, e.g. :module-latest-api and the module |