Acquire first value manually in ClassTemplate 95/84195/2
authorRobert Varga <robert.varga@pantheon.tech>
Wed, 4 Sep 2019 12:40:35 +0000 (14:40 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Wed, 4 Sep 2019 13:37:10 +0000 (15:37 +0200)
commit878c3a64f17c7771bb6fac0d42f8e9c1307d6096
tree80008fe3d139d2301b6504943bd077dda7b0d910
parenta27fbe05be80601723f60371ff4130bca16ca568
Acquire first value manually in ClassTemplate

xtend's get(0) extension ends up creating a temporary list
holding a copy of the (single) value. This is not entirely
efficient, as we can get the same result from plain iterator.

Change-Id: I0f4398a47cb771e8ab7a212a67c5e402d49ffbf2
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
binding/mdsal-binding-java-api-generator/src/main/java/org/opendaylight/mdsal/binding/java/api/generator/ClassTemplate.xtend