summaryrefslogtreecommitdiff
path: root/java/lint.go
diff options
context:
space:
mode:
author Pedro Loureiro <pedroql@google.com> 2021-07-05 13:53:36 +0000
committer Pedro Loureiro <pedroql@google.com> 2021-07-05 16:57:34 +0000
commitffb643fc18a2b8931d90024b91d90bded910c709 (patch)
tree65bbb65582492410bd7c73ea1e0db806ab3a548e /java/lint.go
parent452decbd88bdabe25523b3b877fcac8be2b40524 (diff)
make system server modules use filtered lint database
Bug: 188851704 Test: m Change-Id: Ie8f63286aeeb4cdbec5b9320c2ba41c8e37c7345 Merged-In: Ie8f63286aeeb4cdbec5b9320c2ba41c8e37c7345
Diffstat (limited to 'java/lint.go')
-rw-r--r--java/lint.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/java/lint.go b/java/lint.go
index dd5e4fb13..fe3218e90 100644
--- a/java/lint.go
+++ b/java/lint.go
@@ -391,8 +391,9 @@ func (l *linter) lint(ctx android.ModuleContext) {
rule.Command().Text("rm -f").Output(html).Output(text).Output(xml)
var apiVersionsName, apiVersionsPrebuilt string
- if l.compileSdkKind == android.SdkModule {
- // When compiling an SDK module we use the filtered database because otherwise lint's
+ if l.compileSdkKind == android.SdkModule || l.compileSdkKind == android.SdkSystemServer {
+ // When compiling an SDK module (or system server) we use the filtered
+ // database because otherwise lint's
// NewApi check produces too many false positives; This database excludes information
// about classes created in mainline modules hence removing those false positives.
apiVersionsName = "api_versions_public_filtered.xml"