summaryrefslogtreecommitdiff
path: root/java/java_test.go
diff options
context:
space:
mode:
author Paul Duffin <paulduffin@google.com> 2021-02-24 01:43:18 +0000
committer Paul Duffin <paulduffin@google.com> 2021-02-24 10:17:19 +0000
commiteafc16bf14f4ccd9779e034b3814b9f1e37d4bd2 (patch)
tree99599666b0955989db00ca99bce9381fe7b1cae5 /java/java_test.go
parentb2773e116fb04bc867ea721b1f7e53bf29573c79 (diff)
Allow pre-singleton types to be registered in RegistrationContext
Bug: 181070625 Test: m droid Change-Id: I708b78ed0b42ec55b0442307f40531cfe1233c2b
Diffstat (limited to 'java/java_test.go')
-rw-r--r--java/java_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/java/java_test.go b/java/java_test.go
index 11f6a7c21..8407f2462 100644
--- a/java/java_test.go
+++ b/java/java_test.go
@@ -74,8 +74,8 @@ func testContext(config android.Config) *android.TestContext {
ctx.PreDepsMutators(python.RegisterPythonPreDepsMutators)
ctx.PostDepsMutators(android.RegisterOverridePostDepsMutators)
- ctx.RegisterPreSingletonType("overlay", android.SingletonFactoryAdaptor(ctx.Context, OverlaySingletonFactory))
- ctx.RegisterPreSingletonType("sdk_versions", android.SingletonFactoryAdaptor(ctx.Context, sdkPreSingletonFactory))
+ ctx.RegisterPreSingletonType("overlay", OverlaySingletonFactory)
+ ctx.RegisterPreSingletonType("sdk_versions", sdkPreSingletonFactory)
android.RegisterPrebuiltMutators(ctx)