From 18994c73f11db00371be747c8dca6da1c01fa2ef Mon Sep 17 00:00:00 2001 From: Cole Faust Date: Tue, 28 Feb 2023 16:02:16 -0800 Subject: Replace SortedStringKeys with SortedKeys Now that we have generics. Bug: 193460475 Test: presubmits Change-Id: I1594fd8feb505175d5c09c03ef397e5ffd5b09cb --- java/prebuilt_apis.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'java/prebuilt_apis.go') diff --git a/java/prebuilt_apis.go b/java/prebuilt_apis.go index c6acd55e5..206d99527 100644 --- a/java/prebuilt_apis.go +++ b/java/prebuilt_apis.go @@ -264,7 +264,7 @@ func prebuiltApiFiles(mctx android.LoadHookContext, p *prebuiltApis) { } // Sort the keys in order to make build.ninja stable - for _, k := range android.SortedStringKeys(latest) { + for _, k := range android.SortedKeys(latest) { info := latest[k] name := PrebuiltApiModuleName(info.module, info.scope, "latest") createApiModule(mctx, name, info.path) @@ -284,7 +284,7 @@ func prebuiltApiFiles(mctx android.LoadHookContext, p *prebuiltApis) { } } // Create empty incompatibilities files for remaining modules - for _, k := range android.SortedStringKeys(latest) { + for _, k := range android.SortedKeys(latest) { if _, ok := incompatibilities[k]; !ok { createEmptyFile(mctx, PrebuiltApiModuleName(latest[k].module+"-incompatibilities", latest[k].scope, "latest")) } -- cgit v1.2.3-59-g8ed1b