Cleanup ValueTypes lookup 81/84581/1
authorRobert Varga <robert.varga@pantheon.tech>
Wed, 28 Aug 2019 12:56:04 +0000 (14:56 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Mon, 23 Sep 2019 03:36:32 +0000 (05:36 +0200)
commit51404ca5fcbe989a1acb2de5bbd67d8e1a1837f0
tree4a835ed727d5dfb1c3cb28c4fbe31dff33abca8c
parentb0d6c04dfc87422c02975b0fa90bf97e9a8fafee
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>
(cherry picked from commit b08cec09b7113965fbda5ef1757ca23d7588e5cc)
opendaylight/md-sal/sal-clustering-commons/src/main/java/org/opendaylight/controller/cluster/datastore/node/utils/stream/ValueTypes.java