Cleanup ValueTypes lookup 36/84036/1
authorRobert Varga <robert.varga@pantheon.tech>
Wed, 28 Aug 2019 12:56:04 +0000 (14:56 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Wed, 28 Aug 2019 12:56:04 +0000 (14:56 +0200)
commitb08cec09b7113965fbda5ef1757ca23d7588e5cc
treef1faccbc01ec1c0761a7192cc32ea7240407ab37
parent76b19a3323d73115a126f17bd17d893c5ebdba83
Cleanup ValueTypes lookup

Change type of TYPES to ImmutableMap, so we are binding to a concrete
class when looking up. Also clean up initialization to follow fluent
builder pattern.

Finally inline requireNonNull() call into the invocation, so that its
return value is not wasted.

Change-Id: I4487bd43232131ca548441f4c8901a8c5dc60efa
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
opendaylight/md-sal/sal-clustering-commons/src/main/java/org/opendaylight/controller/cluster/datastore/node/utils/stream/ValueTypes.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.