Speed up AbstractBuilderTemplate.removeProperty() 07/86607/2
authorRobert Varga <robert.varga@pantheon.tech>
Thu, 19 Dec 2019 14:51:20 +0000 (15:51 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Sat, 28 Dec 2019 19:48:20 +0000 (20:48 +0100)
commitf2a58cee9cd5f17f8c9338a2359a063246b823d2
tree6734374bd5f59f469705dad3ffe6e636e4b337ab
parentd491dc14081658c939c0d84dbf676d213afcb989
Speed up AbstractBuilderTemplate.removeProperty()

Rather than performing a linear unbounded search followed by a
conditional remove, use an interator and remove the first matching
property, bailing out.

Change-Id: Ia5de2175628c9730d7c76df58e15540f3cbb4fa3
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
(cherry picked from commit a5f323b5a0eeb5d4a0cb82b37f751ae780ba1f91)
binding/mdsal-binding-java-api-generator/src/main/java/org/opendaylight/mdsal/binding/java/api/generator/AbstractBuilderTemplate.xtend