Rework PathArgumentTypes lookup
authorRobert Varga <robert.varga@pantheon.tech>
Fri, 30 Aug 2019 09:08:37 +0000 (11:08 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Tue, 24 Sep 2019 02:23:12 +0000 (04:23 +0200)
commit8a1e999c0e3bdca762ab5a9040559f7f25cc8889
tree176f8d81b34938b64933ba5c23fad9c9b4a9c24f
parentce90f43b9e346a9be776a88a52332d26818cc907
Rework PathArgumentTypes lookup

This lookup relying on final methods, which is not a correct
assumption, with NodeIdentifierWithPredicates having at least two
properly-hidden implementations.

Rework the lookup in terms of instanceof checks, which saves a table
lookup and unboxing operation.

Change-Id: Ia6b272715d19e432e7e0839b6294035e12b1d293
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
java/org/opendaylight/controller/cluster/datastore/node/utils/stream/LithiumPathArgument.java