BUG-5280: speed FrontendClientMetadataBuilder up 64/49264/6
authorRobert Varga <rovarga@cisco.com>
Mon, 12 Dec 2016 18:07:43 +0000 (19:07 +0100)
committerTom Pantelis <tpanteli@brocade.com>
Sat, 17 Dec 2016 00:47:08 +0000 (00:47 +0000)
commit02f198022910a0c90c93808aa0af55b2f4405781
tree2af454578a87d37625ef13ae1cfd81c25fddea91
parentc3607fd866e5cfde0d4806820981fe95ad29392c
BUG-5280: speed FrontendClientMetadataBuilder up

ensureHistory() boils down to a simple computeIfAbsent(),
so make it more concise by using a simple constructor lambda.

Change-Id: Ia093ced071ae5e0411633d3c4f501a4e94c5de43
Signed-off-by: Robert Varga <rovarga@cisco.com>
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/FrontendClientMetadataBuilder.java

©2013 OpenDaylight, A Linux Foundation Collaborative Project. All Rights Reserved.
OpenDaylight is a registered trademark of The OpenDaylight Project, Inc.
Linux Foundation and OpenDaylight are registered trademarks of the Linux Foundation.
Linux is a registered trademark of Linus Torvalds.