summaryrefslogtreecommitdiff
path: root/java/java.go
diff options
context:
space:
mode:
author Colin Cross <ccross@android.com> 2022-04-21 12:50:51 -0700
committer Colin Cross <ccross@android.com> 2023-06-22 08:18:33 -0700
commitc85750bfe3d0ebadc5ef9051603464699c0a09fc (patch)
tree4e933d1bc7b26f5283c8a0bc6c2d8b0aac869dbc /java/java.go
parentabcfc77717b9116f0e838d3b56be447330f1b55a (diff)
Use generics for DepSets
Use Go's generics for DepSets so they don't require a type-specific wrapper and reflection. Test: depsets_test.go Change-Id: I22ba0b7d680d37d2cd05230b0f560d166c4dd20b
Diffstat (limited to 'java/java.go')
-rw-r--r--java/java.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/java/java.go b/java/java.go
index a026610c2..3e6b96b26 100644
--- a/java/java.go
+++ b/java/java.go
@@ -231,10 +231,10 @@ type JavaInfo struct {
HeaderJars android.Paths
// set of header jars for all transitive libs deps
- TransitiveLibsHeaderJars *android.DepSet
+ TransitiveLibsHeaderJars *android.DepSet[android.Path]
// set of header jars for all transitive static libs deps
- TransitiveStaticLibsHeaderJars *android.DepSet
+ TransitiveStaticLibsHeaderJars *android.DepSet[android.Path]
// ImplementationAndResourceJars is a list of jars that contain the implementations of classes
// in the module as well as any resources included in the module.