Cleanup findChildSchemaDefinition() 07/97907/3
authorRobert Varga <robert.varga@pantheon.tech>
Fri, 15 Oct 2021 13:46:04 +0000 (15:46 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Fri, 15 Oct 2021 13:58:40 +0000 (15:58 +0200)
commitf6a4966099b968d8bb0106709086a26005f49861
treeb8262d42ef5d6ef1b8658ef422e391ada8fcc76e
parentb5e4a31d61c4b0cfc6fbeacb01d8c5d23bfe1db8
Cleanup findChildSchemaDefinition()

Now that we have the search and codec check split out, we can clean up
some of the logic to ditch if-else blocks. Also fixes a potential NPE.

Change-Id: I2a341d06bd3abfc39d7ecfaaf876e6617ddea037
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
binding/mdsal-binding-runtime-api/src/main/java/org/opendaylight/mdsal/binding/runtime/api/AbstractBindingRuntimeContext.java