summaryrefslogtreecommitdiff
path: root/java/java_test.go
diff options
context:
space:
mode:
authorPaul Duffin <paulduffin@google.com>2019-12-05 14:07:14 +0000
committerPaul Duffin <paulduffin@google.com>2019-12-06 16:13:58 +0000
commit4735766ef80518fca4ee4788efff81dce271b45b (patch)
tree4b08534b638014f77ab64cf417c67c42689c3e36 /java/java_test.go
parenta0dbf43a82684ec9055b8798e49b4b6c0936652d (diff)
Cleanup java.DefaultsFactory()
This function took a props varargs parameter but it was only ever called with no parameters. The props parameter meant it could not be used directly with RegisterModuleType() so the defaultsFactory() func was added which simply called through to DefaultsFactory(). Removing the props varargs parameter allowed it to be used directly with RegisterModuleType() and so the defaultsFactory() could be removed. This was needed because a follow up change adds a test in another package that uses java_defaults and so it needs the factory method (defaultsFactory()) to be exported. Test: m nothing Change-Id: I33d5c4d4ce8f349b1e6fc706d5e9656faf303b4f
Diffstat (limited to 'java/java_test.go')
-rw-r--r--java/java_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/java/java_test.go b/java/java_test.go
index dc498a492..690ddd76d 100644
--- a/java/java_test.go
+++ b/java/java_test.go
@@ -79,7 +79,7 @@ func testContext(bp string, fs map[string][]byte) *android.TestContext {
ctx.RegisterModuleType("java_test", TestFactory)
ctx.RegisterModuleType("java_import", ImportFactory)
ctx.RegisterModuleType("java_import_host", ImportFactoryHost)
- ctx.RegisterModuleType("java_defaults", defaultsFactory)
+ ctx.RegisterModuleType("java_defaults", DefaultsFactory)
ctx.RegisterModuleType("java_system_modules", SystemModulesFactory)
ctx.RegisterModuleType("java_genrule", genRuleFactory)
ctx.RegisterModuleType("java_plugin", PluginFactory)