From 80b68c44cac5bead6f247f9026238338ee62302f Mon Sep 17 00:00:00 2001 From: Yu Liu Date: Wed, 15 Jan 2025 18:14:34 +0000 Subject: Convert initHiddenAPI, lint and proguardBuildActions to use ModuleProxy. Bug: 377723687 Test: Unit tests and compare the ninja and mk files generated. Change-Id: Icde6331533685be54f7ee2e86696da05a77431b6 --- java/lint.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'java/lint.go') diff --git a/java/lint.go b/java/lint.go index cee25a8d5..3838745e4 100644 --- a/java/lint.go +++ b/java/lint.go @@ -398,7 +398,7 @@ func (l *linter) lint(ctx android.ModuleContext) { } } - extraLintCheckModules := ctx.GetDirectDepsWithTag(extraLintCheckTag) + extraLintCheckModules := ctx.GetDirectDepsProxyWithTag(extraLintCheckTag) for _, extraLintCheckModule := range extraLintCheckModules { if dep, ok := android.OtherModuleProvider(ctx, extraLintCheckModule, JavaInfoProvider); ok { l.extraLintCheckJars = append(l.extraLintCheckJars, dep.ImplementationAndResourcesJars...) @@ -423,7 +423,7 @@ func (l *linter) lint(ctx android.ModuleContext) { depSetsBuilder := NewLintDepSetBuilder().Direct(html, text, xml, baseline) - ctx.VisitDirectDepsWithTag(staticLibTag, func(dep android.Module) { + ctx.VisitDirectDepsProxyWithTag(staticLibTag, func(dep android.ModuleProxy) { if info, ok := android.OtherModuleProvider(ctx, dep, LintProvider); ok { depSetsBuilder.Transitive(info) } -- cgit v1.2.3-59-g8ed1b