Convert ModuleProvder to generic providers API
Convert all of the callers of ModuleProvider/ModuleHasProvider to use the type-safe android.SingletonModuleProvider API. Bug: 316410648 Test: builds Change-Id: I6f11638546b64749e451cebbf33140248dc1d193
This commit is contained in:
@@ -262,8 +262,7 @@ func createFrameworkAidl(stubsModules []string, path android.WritablePath, ctx a
|
||||
|
||||
ctx.VisitAllModules(func(module android.Module) {
|
||||
// Collect dex jar paths for the modules listed above.
|
||||
if ctx.ModuleHasProvider(module, JavaInfoProvider) {
|
||||
j := ctx.ModuleProvider(module, JavaInfoProvider).(JavaInfo)
|
||||
if j, ok := android.SingletonModuleProvider(ctx, module, JavaInfoProvider); ok {
|
||||
name := ctx.ModuleName(module)
|
||||
if i := android.IndexList(name, stubsModules); i != -1 {
|
||||
stubsJars[i] = j.HeaderJars
|
||||
|
Reference in New Issue
Block a user