summaryrefslogtreecommitdiff
path: root/java/lint.go
diff options
context:
space:
mode:
author Orion Hodson <oth@google.com> 2022-10-25 16:45:14 +0100
committer Orion Hodson <oth@google.com> 2022-10-26 15:07:11 +0000
commitb2d3c8cac63535932293d4c24b1d65def1c04344 (patch)
tree12a31724823abb2a9773c818d6345b6796b90f44 /java/lint.go
parenta3b96888598f2da9a4ef2e165d140eee2e51bf5c (diff)
Allow all of libcore to have NewApi warnings
Required due to minor refactor of libcore projects. Bug: 208656169 Bug: 255273691 Test: TH Change-Id: Ifd2ef6d3553ade5a059880398075c70635d428dd
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 fcd6d31ff..9827159c8 100644
--- a/java/lint.go
+++ b/java/lint.go
@@ -333,7 +333,7 @@ func (l *linter) lint(ctx android.ModuleContext) {
l.extraMainlineLintErrors = append(l.extraMainlineLintErrors, updatabilityChecks...)
// Skip lint warning checks for NewApi warnings for libcore where they come from source
// files that reference the API they are adding (b/208656169).
- if ctx.ModuleDir() != "libcore" {
+ if !strings.HasPrefix(ctx.ModuleDir(), "libcore") {
_, filtered := android.FilterList(l.properties.Lint.Warning_checks, updatabilityChecks)
if len(filtered) != 0 {