summaryrefslogtreecommitdiff
path: root/apex/apex.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 /apex/apex.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 'apex/apex.go')
-rw-r--r--apex/apex.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/apex/apex.go b/apex/apex.go
index 38a166eb3..53727644a 100644
--- a/apex/apex.go
+++ b/apex/apex.go
@@ -912,13 +912,13 @@ type DCLAInfo struct {
ProvidedLibs []string
}
-var DCLAInfoProvider = blueprint.NewMutatorProvider(DCLAInfo{}, "apex_info")
+var DCLAInfoProvider = blueprint.NewMutatorProvider[DCLAInfo]("apex_info")
type ApexBundleInfo struct {
Contents *android.ApexContents
}
-var ApexBundleInfoProvider = blueprint.NewMutatorProvider(ApexBundleInfo{}, "apex_info")
+var ApexBundleInfoProvider = blueprint.NewMutatorProvider[ApexBundleInfo]("apex_info")
var _ ApexInfoMutator = (*apexBundle)(nil)