We do not correctly propagate the fact the return is @NonNull,
leading to Eclipse issuing warnings. Fix that.
JIRA: MDSAL-487
Change-Id: I24360192d105423a19165855521bb24bb0bd0678
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
(cherry picked from commit
8fc4a97304080fafab158ef877e6fc180c030ac0)
* @param input input list, may be null
* @return Input list or an empty list.
*/
- public static <T> List<T> nonnull(final @Nullable List<T> input) {
+ public static <T> @NonNull List<T> nonnull(final @Nullable List<T> input) {
return input != null ? input : ImmutableList.of();
}