summaryrefslogtreecommitdiff
path: root/java/lint_test.go
diff options
context:
space:
mode:
author Cole Faust <colefaust@google.com> 2024-01-16 17:17:11 -0800
committer Cole Faust <colefaust@google.com> 2024-01-17 07:45:35 +0000
commit028b94cdc5d89e3f5a84b25b39067f902ffa448a (patch)
treed3577999b259d9a5f172b7b001dc32cbdfbc61df /java/lint_test.go
parent3905a6adbd827fe94d443baf5337918facfd87d8 (diff)
Promote the NewApi check to an error again
Now that all existing cases have been baselined. Ignore-AOSP-First: Requires a LSC that is difficult to do across branches. Bug: 268261262 Test: m lint-check Change-Id: I413f86ff7a1f33564465f3ba9cd52924a4242901
Diffstat (limited to 'java/lint_test.go')
-rw-r--r--java/lint_test.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/java/lint_test.go b/java/lint_test.go
index b7e6aad8e..11c999cea 100644
--- a/java/lint_test.go
+++ b/java/lint_test.go
@@ -91,9 +91,8 @@ func TestJavaLintUsesCorrectBpConfig(t *testing.T) {
t.Error("did not use the correct file for baseline")
}
- if !strings.Contains(*sboxProto.Commands[0].Command, "--warning_check NewApi") {
- // TODO(b/268261262): Change this to check for --error_check
- t.Error("should check NewApi warnings")
+ if !strings.Contains(*sboxProto.Commands[0].Command, "--error_check NewApi") {
+ t.Error("should check NewApi errors")
}
if !strings.Contains(*sboxProto.Commands[0].Command, "--error_check SomeCheck") {