Replace SortedStringKeys with SortedKeys
Now that we have generics. Bug: 193460475 Test: presubmits Change-Id: I1594fd8feb505175d5c09c03ef397e5ffd5b09cb
This commit is contained in:
@@ -440,7 +440,7 @@ func (i BootclasspathFragmentApexContentInfo) DexBootJarPathForContentModule(mod
|
||||
return dexJar, nil
|
||||
} else {
|
||||
return nil, fmt.Errorf("unknown bootclasspath_fragment content module %s, expected one of %s",
|
||||
name, strings.Join(android.SortedStringKeys(i.contentModuleDexJarPaths), ", "))
|
||||
name, strings.Join(android.SortedKeys(i.contentModuleDexJarPaths), ", "))
|
||||
}
|
||||
}
|
||||
|
||||
@@ -709,7 +709,7 @@ func (b *BootclasspathFragmentModule) getImageConfig(ctx android.EarlyModuleCont
|
||||
imageName := *imageNamePtr
|
||||
imageConfig := imageConfigs[imageName]
|
||||
if imageConfig == nil {
|
||||
ctx.PropertyErrorf("image_name", "Unknown image name %q, expected one of %s", imageName, strings.Join(android.SortedStringKeys(imageConfigs), ", "))
|
||||
ctx.PropertyErrorf("image_name", "Unknown image name %q, expected one of %s", imageName, strings.Join(android.SortedKeys(imageConfigs), ", "))
|
||||
return nil
|
||||
}
|
||||
return imageConfig
|
||||
|
Reference in New Issue
Block a user