summaryrefslogtreecommitdiff
path: root/java/kotlin_test.go
diff options
context:
space:
mode:
authorColin Cross <ccross@android.com>2019-01-23 16:14:02 -0800
committerColin Cross <ccross@android.com>2019-01-24 23:48:04 +0000
commit7788c1283fcfe00b59d500fdc3b01ff39049e7ed (patch)
tree4bdd29ce554a8952e8462c8141b59f40751e771f /java/kotlin_test.go
parent11ecdd69798c12ab0657aa6fdd03b44ddadda6ad (diff)
Remove annotation_processors property
Now that there are no uses left of annotation_processors remove the property. If there are no annotation processor classes for javac for a module, due to an empty "plugins" property or using kapt for annotation processors, pass -proc:none to javac to ensure it does not try to run any annotation processors found in the classpath. Bug: 77284273 Test: plugin_test.go, kotlin_test.go Change-Id: I3823d9fec8d3d07d2e49b1d97839f7fcbdd35647
Diffstat (limited to 'java/kotlin_test.go')
-rw-r--r--java/kotlin_test.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/java/kotlin_test.go b/java/kotlin_test.go
index 9406ef9d7..e0eb0c06d 100644
--- a/java/kotlin_test.go
+++ b/java/kotlin_test.go
@@ -149,9 +149,8 @@ func TestKapt(t *testing.T) {
if javac.Args["processorPath"] != "" {
t.Errorf("expected processorPath '', got %q", javac.Args["processorPath"])
}
- // TODO(b/77284273): test for -processor:none
- if javac.Args["processor"] != "" {
- t.Errorf("expected processor '', got %q", javac.Args["processor"])
+ if javac.Args["processor"] != "-proc:none" {
+ t.Errorf("expected processor '-proc:none', got %q", javac.Args["processor"])
}
}