diff options
author | 2023-12-14 14:46:23 -0800 | |
---|---|---|
committer | 2023-12-14 16:12:22 -0800 | |
commit | 5a37718c956b1bfbda5e236c0fe50f08661a81de (patch) | |
tree | f8a6bddfb1fc02a663884ec9d500a831607572be /java/sdk.go | |
parent | 313aa5475f50024da74e709a55f840eb7b263153 (diff) |
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
Diffstat (limited to 'java/sdk.go')
-rw-r--r-- | java/sdk.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/java/sdk.go b/java/sdk.go index ad71fb236..352b24319 100644 --- a/java/sdk.go +++ b/java/sdk.go @@ -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 |