summaryrefslogtreecommitdiff
path: root/java/hiddenapi_singleton_test.go
diff options
context:
space:
mode:
authorPaul Duffin <paulduffin@google.com>2020-10-23 21:23:44 +0100
committerPaul Duffin <paulduffin@google.com>2020-10-27 10:36:29 +0000
commite10dfa4e3def600508b5f3423b24c9bfdc05a2d2 (patch)
tree450790f6472ea948b96bb7eb386485ab92dda5a4 /java/hiddenapi_singleton_test.go
parent7ccacaedbe53e7f6560d6e7a2cdfa1bcb2176997 (diff)
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
Diffstat (limited to 'java/hiddenapi_singleton_test.go')
-rw-r--r--java/hiddenapi_singleton_test.go2
1 files changed, 1 insertions, 1 deletions
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
}