Use ImmutableBiMap builder fluently 76/100476/2
authorRobert Varga <robert.varga@pantheon.tech>
Thu, 7 Apr 2022 15:16:07 +0000 (17:16 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Thu, 7 Apr 2022 16:31:35 +0000 (18:31 +0200)
commitc763a16f9cd72bb4f27997f301f163b83d470a24
tree014426300627e62b804eb520bf89beef8a6f3681
parent624904a385dfaac675da40a6705ff601151699be
Use ImmutableBiMap builder fluently

We can simply allocate the builder without intermediate local, saving
us an import. Also split the locked update part into a separate method
to aid inlining.

Change-Id: I34b3dffd49c5bd637792c743e9b71e31082201f4
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/databroker/actors/dds/ModuleShardBackendResolver.java