Cleanup MultipartReplyTranslatorUtil 61/94361/3
authorRobert Varga <robert.varga@pantheon.tech>
Sun, 3 Jan 2021 13:39:57 +0000 (14:39 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Sun, 3 Jan 2021 15:32:49 +0000 (16:32 +0100)
commit3cdde4ae98a14feeb0f2b716597f7c1f28ded160
treee41cace8883c3b0570d82d4272fe4d32af691842
parented89a426c5e327b1eb8333e8e7eb5fb3acf14ec8
Cleanup MultipartReplyTranslatorUtil

Rather than using Optional.flatMap(), which seems to be an all-time
favorite switch to using null checks and explicit returns. While we
are here, also make sure we use Builders' fluent capacity.

Change-Id: Ib27cbc4e290620ddb53139349079f0349f84e0ff
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
openflowplugin-impl/src/main/java/org/opendaylight/openflowplugin/impl/common/MultipartReplyTranslatorUtil.java