diff options
Diffstat (limited to 'java/lint.go')
-rw-r--r-- | java/lint.go | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/java/lint.go b/java/lint.go index 3a210cc0b..3df582f6e 100644 --- a/java/lint.go +++ b/java/lint.go @@ -451,10 +451,13 @@ func (l *lintSingleton) generateLintReportZips(ctx android.SingletonContext) { return } - if apex, ok := m.(android.ApexModule); ok && apex.NotAvailableForPlatform() && apex.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. - return + if apex, ok := m.(android.ApexModule); ok && apex.NotAvailableForPlatform() { + apexInfo := ctx.ModuleProvider(m, android.ApexInfoProvider).(android.ApexInfo) + 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. + return + } } if l, ok := m.(lintOutputsIntf); ok { |