Fix ClassTemplate.genConstructor() declaration 80/84380/1
authorRobert Varga <robert.varga@pantheon.tech>
Wed, 4 Sep 2019 12:44:47 +0000 (14:44 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Fri, 13 Sep 2019 14:10:15 +0000 (16:10 +0200)
commite3f1822d2c1783e3bf227ae8930e5dabd5217ce1
tree5260088403e8b89c1fddb07ce0a9949ad1e27c75
parenta8c6173b6361e5ff7a70c641bb95dbc165b41440
Fix ClassTemplate.genConstructor() declaration

Using an array here is forcing us to needlessly unwrap the arraylist
(a perfectly iterable thing) to an array, which is only iterater over.

Fix this by passing down an iterable, which means the list can be
passed down as is.

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