Use ArrayList.sort() instead of Collections.sort() 63/76963/1
authorRobert Varga <robert.varga@pantheon.tech>
Sat, 13 Oct 2018 08:38:32 +0000 (10:38 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Sat, 13 Oct 2018 09:01:35 +0000 (11:01 +0200)
commite749dfcb78188b56cda42f827bd51aacf8f7855b
tree743beac265958a9f6423b1ed5f6222227c4becc4
parentc4ef887d0f7655a9af798a232712b940eeb2e459
Use ArrayList.sort() instead of Collections.sort()

We do not need Collections, as we have Java 8 and hence can
directly use List.sort(). This has the side-effect of
short-circuiting to ArrayList's implementation.

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