summaryrefslogtreecommitdiff
path: root/java/java.go
diff options
context:
space:
mode:
author Paul Duffin <paulduffin@google.com> 2022-04-01 15:04:23 +0100
committer Paul Duffin <paulduffin@google.com> 2022-04-01 15:04:23 +0100
commitdbbb8374a2c2dea5093041f77579c3994473515a (patch)
tree227e4bae4cbb9e8227ab5fe024e87b3bf1888007 /java/java.go
parent3aae38d451e44d7f12224e938456dfb2fd665ac5 (diff)
signature_trie: Avoid unnecessary wrapping and unwrapping of values
Previously, Leaf.values() and Leaf.append_values() would wrap the Leaf's value inside a list before appending it to the list of values. So, the values list was actually a list of lists of values. The get_matching_rows method would then use chain.from_iterable() to flatten that list of list of values into a list of values. This change removes the initial wrapping in a list and so removes the need to flatten them into a single list. It also adds a test for the values() method. Prior to this change the expected value would have been [[1], ["A"], [{}]]. Bug: 202154151 Test: atest --host analyze_bcpf_test signature_trie_test verify_overlaps_test Change-Id: Ida78500c9ab4466de127b2c36501b3606d0f3fe5
Diffstat (limited to 'java/java.go')
0 files changed, 0 insertions, 0 deletions