From 7788c1283fcfe00b59d500fdc3b01ff39049e7ed Mon Sep 17 00:00:00 2001 From: Colin Cross Date: Wed, 23 Jan 2019 16:14:02 -0800 Subject: 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 --- java/plugin_test.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'java/plugin_test.go') diff --git a/java/plugin_test.go b/java/plugin_test.go index 7aa0164f1..d1aef2c19 100644 --- a/java/plugin_test.go +++ b/java/plugin_test.go @@ -38,9 +38,8 @@ func TestNoPlugin(t *testing.T) { t.Errorf("want empty processorpath, got %q", javac.Args["processorpath"]) } - // TODO(b/77284273): test for -processor:none if no plugins are enabled - if javac.Args["processor"] != "" { - t.Errorf("want no -processor argument, got %q", javac.Args["processor"]) + if javac.Args["processor"] != "-proc:none" { + t.Errorf("want '-proc:none' argument, got %q", javac.Args["processor"]) } } -- cgit v1.2.3-59-g8ed1b