summaryrefslogtreecommitdiff
path: root/java/lint.go
diff options
context:
space:
mode:
author Colin Cross <ccross@android.com> 2023-12-14 14:46:23 -0800
committer Colin Cross <ccross@android.com> 2023-12-14 16:12:22 -0800
commit5a37718c956b1bfbda5e236c0fe50f08661a81de (patch)
treef8a6bddfb1fc02a663884ec9d500a831607572be /java/lint.go
parent313aa5475f50024da74e709a55f840eb7b263153 (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/lint.go')
-rw-r--r--java/lint.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/java/lint.go b/java/lint.go
index 095323625..5a684a8c0 100644
--- a/java/lint.go
+++ b/java/lint.go
@@ -660,7 +660,7 @@ func (l *lintSingleton) generateLintReportZips(ctx android.SingletonContext) {
}
if apex, ok := m.(android.ApexModule); ok && apex.NotAvailableForPlatform() {
- apexInfo := ctx.ModuleProvider(m, android.ApexInfoProvider).(android.ApexInfo)
+ apexInfo, _ := android.SingletonModuleProvider(ctx, m, android.ApexInfoProvider)
if apexInfo.IsForPlatform() {
// There are stray platform variants of modules in apexes that are not available for
// the platform, and they sometimes can't be built. Don't depend on them.