From e10dfa4e3def600508b5f3423b24c9bfdc05a2d2 Mon Sep 17 00:00:00 2001 From: Paul Duffin Date: Fri, 23 Oct 2020 21:23:44 +0100 Subject: Cleanup usages of CreateConfiguredJarList After previous refactorings the CreateConfiguredJarList function is now only used in tests and are supplied with a PathContext that will cause ReportPathErrorf() to panic. So, this change removes the ctx parameter, calls panic directly on any error and renames the method to make it clear that it is for testing only. Bug: 171479578 Test: m nothing Change-Id: Icfb4bdfe720afa855b64ecf0e74a0b030882d029 --- java/hiddenapi_singleton_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'java/hiddenapi_singleton_test.go') diff --git a/java/hiddenapi_singleton_test.go b/java/hiddenapi_singleton_test.go index 0c223d970..7acaae750 100644 --- a/java/hiddenapi_singleton_test.go +++ b/java/hiddenapi_singleton_test.go @@ -25,7 +25,7 @@ import ( func testConfigWithBootJars(bp string, bootJars []string) android.Config { config := testConfig(nil, bp, nil) - config.TestProductVariables.BootJars = android.CreateConfiguredJarList(nil, bootJars) + config.TestProductVariables.BootJars = android.CreateTestConfiguredJarList(bootJars) return config } -- cgit v1.2.3-59-g8ed1b