Use Map.of() instead of Collections.emptyMap() in builders 44/100844/1
authorRobert Varga <robert.varga@pantheon.tech>
Wed, 27 Apr 2022 15:02:43 +0000 (17:02 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Wed, 27 Apr 2022 15:21:44 +0000 (17:21 +0200)
commit2789476b592b0df9eab7b83f3a9d2a2b9cd60099
tree45891f31b0456b8c002d1a4a4b16a7666f7bdfb0
parentd49eb84dc5c7ec6201660fa899b79c564242d275
Use Map.of() instead of Collections.emptyMap() in builders

Augmentation field is not used by the builder-internal implementation,
hence we can inline the codegen. Also use Map.of() instead of
emptyMap().

Change-Id: I62e9b92b31355abd917a05a01c94f46230f449ec
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/AbstractBuilderTemplate.xtend
binding/mdsal-binding-java-api-generator/src/main/java/org/opendaylight/mdsal/binding/java/api/generator/BuilderTemplate.xtend