Remove an orElse(null) indirection 79/93879/3
authorRobert Varga <robert.varga@pantheon.tech>
Wed, 18 Nov 2020 12:46:36 +0000 (13:46 +0100)
committerRobert Varga <nite@hq.sk>
Wed, 18 Nov 2020 13:37:44 +0000 (13:37 +0000)
commit8c0f44e010826c36a232df28385dc591c7f878fd
tree2e7358a386b89c4535b8405f2032af94312c60fe
parent2385aa7f0e3fb820348fd6ebe60b007444400d8a
Remove an orElse(null) indirection

We do not need to update foundNode() if we do not find anything,
hence sync on optional directly. Improves interactions and solves
an Eclipse warning.

Change-Id: Ibc553d50d48ccd22480bdc33163364bc8a509c83
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
yang/yang-model-util/src/main/java/org/opendaylight/yangtools/yang/model/util/SchemaContextUtil.java