commit | 98606eda4a2ea11c523ee982c9def6b7fdad20e0 | [log] [tgz] |
---|---|---|
author | Martin Fick <mfick@codeaurora.org> | Tue Sep 22 17:39:01 2020 -0600 |
committer | Martin Fick <mfick@codeaurora.org> | Tue Sep 22 17:47:27 2020 -0600 |
tree | e087515d57b2fc454d3fbf2e51fdf5460bd124ff | |
parent | 7ad27c7ac49731e70dd5ad3691b0b410492792f0 [diff] |
Use an Optional<ReplicateRefUpdate> in list() Using an Optional is safer than using nulls, and made it easy to also fix the list() API to simply skip things that aren't present instead of making the API users do that. Add methods to ReplicateRefUpdate to create the Optional<ReplicateRefUpdate> instead of creating them inside the list() method; this helps separate concerns better. Change-Id: Ib04a59be49d85b289d7dd94b9f2427819324153c