Fix Eclipse nullness errors 81/109181/2
authorRobert Varga <robert.varga@pantheon.tech>
Wed, 6 Dec 2023 21:07:59 +0000 (22:07 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Wed, 6 Dec 2023 21:09:55 +0000 (22:09 +0100)
commit3742cb5ba5b3a8ebd2e8bea21f4b65cb85cd66d3
treedeb0a9dc9a7593f8007c582424b04956bc35cf01
parent4a6f52974c9f6c32461bf5596705de4a2ecd2a43
Fix Eclipse nullness errors

We have two error-level warnings reported for instantiated GeneratorTask
list. Fix them by annotating the result of instantiateGenerators().

While we are here, also clean up the method a bit and return an
ImmutableList instead.

Change-Id: Ic373c34671877c1cf5ce685ed38e55ef3579fc34
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
plugin/yang-maven-plugin/src/main/java/org/opendaylight/yangtools/yang2sources/plugin/YangToSourcesProcessor.java