summaryrefslogtreecommitdiff
path: root/android/apex_contributions.go
diff options
context:
space:
mode:
author Colin Cross <ccross@android.com> 2023-12-12 16:39:03 -0800
committer Colin Cross <ccross@android.com> 2023-12-14 16:12:20 -0800
commitbc7d76cca2a9eead34b45bcdf333eecdb4152879 (patch)
treed4cf3619f6c9537f2f40058342e551353f8da61e /android/apex_contributions.go
parent3c0a83d19f56061bc9f621372cc7a5245d1204f6 (diff)
Convert NewProvider/NewMutatorProvider to generic providers API
Convert all of the callers to NewProvider and NewMutatorProvider to use a generic type parameter instead of an example object. Bug: 316410648 Test: builds Change-Id: Ic9cdafc87336e26730d3fd596df05de0e7267542
Diffstat (limited to 'android/apex_contributions.go')
-rw-r--r--android/apex_contributions.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/android/apex_contributions.go b/android/apex_contributions.go
index f13659a6d..89058fd5a 100644
--- a/android/apex_contributions.go
+++ b/android/apex_contributions.go
@@ -124,7 +124,7 @@ func (a *allApexContributions) SetPrebuiltSelectionInfoProvider(ctx BaseModuleCo
// A provider containing metadata about whether source or prebuilt should be used
// This provider will be used in prebuilt_select mutator to redirect deps
-var PrebuiltSelectionInfoProvider = blueprint.NewMutatorProvider(PrebuiltSelectionInfoMap{}, "prebuilt_select")
+var PrebuiltSelectionInfoProvider = blueprint.NewMutatorProvider[PrebuiltSelectionInfoMap]("prebuilt_select")
// Map of baseModuleName to the selected source or prebuilt
type PrebuiltSelectionInfoMap map[string]PrebuiltSelectionInfo