Add @NonNull annotation to $YangModuleInfoImpl.qnameOf() 09/85309/2
authorRobert Varga <robert.varga@pantheon.tech>
Mon, 21 Oct 2019 12:44:33 +0000 (14:44 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Mon, 21 Oct 2019 18:41:53 +0000 (20:41 +0200)
commit128782f56b84e54d2c02f175d6592e6a84c09637
tree4223d68731e82b2256b4449f84f49708082cab48
parent7281aac092629695d73c1cbfb89290a8f8d17fa2
Add @NonNull annotation to $YangModuleInfoImpl.qnameOf()

YangModuleInfoTemplate has a lot of ceremony when we statically
know the types being used by the template. Concentrate imports
into two sets, instantiate them as strings and be done with it.

Since this takes care of most dynamics, making things much easier
and predictable, we can easily add @NonNull annotations as needed.

JIRA: MDSAL-487
Change-Id: Ic9cd4da1002f3edea6f3fb18f9d49e4a377e145b
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
(cherry picked from commit b0ea6f0f70fbc597779703a4c65dd85b69355de3)
binding/mdsal-binding-java-api-generator/src/main/java/org/opendaylight/mdsal/binding/java/api/generator/YangModuleInfoTemplate.xtend