Reduce use of getDataChildByName() 65/81465/2
authorRobert Varga <robert.varga@pantheon.tech>
Tue, 9 Apr 2019 06:47:51 +0000 (08:47 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Tue, 9 Apr 2019 08:50:10 +0000 (10:50 +0200)
commit0cfe4657be10a1a64de16f9bc29c8b1b9ee79555
tree421df14f819cea12549951bad272f666def1faa3
parent7d68d4e318515ea4eea68889c4990db1b4d47ffb
Reduce use of getDataChildByName()

Using findDataChildByName() is null-safe, allowing us to reduce
the number of assertions.

Change-Id: I182f52371aab5b18d94bebcd3a9aaf26b9d5fb55
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
binding/mdsal-binding-generator-impl/src/test/java/org/opendaylight/mdsal/binding/generator/impl/TypeProviderIntegrationTest.java
binding/mdsal-binding-generator-impl/src/test/java/org/opendaylight/mdsal/binding/yang/types/TypeProviderTest.java