Speed up NormalizedNodeSchemaUtils.detectCase() 42/95842/1
authorRobert Varga <robert.varga@pantheon.tech>
Mon, 19 Apr 2021 18:58:31 +0000 (20:58 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Mon, 19 Apr 2021 19:00:17 +0000 (21:00 +0200)
commit922e1166980522d3aec8afa39fc06ab490fae15d
tree093ba8fb60c2a60efc5bcb2984bbbbe26102c0cb
parentf24f264f6fa03f6e7a4a23fdef4576bcc0341aa9
Speed up NormalizedNodeSchemaUtils.detectCase()

We are dealing with two distinct cases here to side-step
AugmentationNode mechanics. Lift the check out of the loop, which allows
us to neatly expose a method to which callers can bind at compile time.

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