summaryrefslogtreecommitdiff
path: root/sdk/java_sdk_test.go
diff options
context:
space:
mode:
author Paul Duffin <paulduffin@google.com> 2022-01-27 16:39:06 +0000
committer Paul Duffin <paulduffin@google.com> 2022-01-31 12:28:04 +0000
commit106a3a4bec44f8d1120f72dc52f6d2c797f3a80e (patch)
tree4a13f8d451070f1a231c59940fe298119a5c049e /sdk/java_sdk_test.go
parent545c59273de8e741ca8820656d972fbeb03f1ef9 (diff)
Allow pruning of unsupported fields in structs in maps
Adds support for traversing into a field that is of type: map[...]*struct{...} This is needed to allow java_sdk_library to mark scope specific properties, e.g. public.annotations as being target build release specific. It was necessary to change the Scope field from: Scope map[*apiScope]scopeProperties to: Scope map[*apiScope]*scopeProperties That is because there is no way in go to change the field of a struct value of a map. i.e. you cannot do the following, not even using reflection: Scope[apiScopePublic].AnnotationsZip = nil Bug: 204763318 Test: m nothing Change-Id: Id103f70f55d4202971321ef4925cbec4b55f8136
Diffstat (limited to 'sdk/java_sdk_test.go')
0 files changed, 0 insertions, 0 deletions