Remove AbstractExplicitGenerator.recursiveRuntimeType() 11/100111/3
authorRobert Varga <robert.varga@pantheon.tech>
Sun, 13 Mar 2022 23:05:02 +0000 (00:05 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Mon, 14 Mar 2022 18:12:53 +0000 (19:12 +0100)
commit2037a8c6e17b521c9ccf1ee3a1a965fa96cade3d
tree54da51e8f3340a5ac791f2a67f2a8ae6e6f4681e
parent879a082d90ce368b344c6e9bb48cbf2f1b2a9e3b
Remove AbstractExplicitGenerator.recursiveRuntimeType()

A potential identified in the bug report is repetitive creation
of the same runtime type, when it clearly should be reused.
Make sure we recognize when we are dealing with the same statement
and eliminate one Optional.map() indirection.

JIRA: MDSAL-735
Change-Id: Iaa97a04f58465b302666ca082a887fde9616282a
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
binding/mdsal-binding-generator/src/main/java/org/opendaylight/mdsal/binding/generator/impl/reactor/AbstractExplicitGenerator.java