summaryrefslogtreecommitdiff
path: root/java/lint.go
diff options
context:
space:
mode:
author Yu Liu <yudiliu@google.com> 2025-01-15 18:14:34 +0000
committer Yu Liu <yudiliu@google.com> 2025-01-15 12:06:06 -0800
commit80b68c44cac5bead6f247f9026238338ee62302f (patch)
tree485038efb37a53911a68bc36aa30572d3c5b8517 /java/lint.go
parent2ce2b5a34aaf17684694a97be19e2d3ec0f31127 (diff)
Convert initHiddenAPI, lint and proguardBuildActions to use ModuleProxy.
Bug: 377723687 Test: Unit tests and compare the ninja and mk files generated. Change-Id: Icde6331533685be54f7ee2e86696da05a77431b6
Diffstat (limited to 'java/lint.go')
-rw-r--r--java/lint.go4
1 files changed, 2 insertions, 2 deletions
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)
}