Refactor MatchExtensionHelper 76/94376/2
authorRobert Varga <robert.varga@pantheon.tech>
Sun, 3 Jan 2021 19:37:10 +0000 (20:37 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Sun, 3 Jan 2021 19:55:07 +0000 (20:55 +0100)
commit6d836d691c035880212496c843d036792b3e7435
treea91d3b70a763396abe2f8c90cc467d12a0840e25
parentbb0f95b761d9698316671b6cc2d0ab22c64f3337
Refactor MatchExtensionHelper

This is a rather simple utility class. Since we are cleaning up
deprecation warnings, we might as well completely refactor it.

This results in much more expressive code as well as performance
wins, as we propagate invariants as early as possible -- untangling
the Optional.ofNullable().map().orElse(new ...) mess.

Change-Id: Ia92d36626c6c449558a3cd91f4f52b708b0d9645
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
openflowplugin/src/main/java/org/opendaylight/openflowplugin/openflow/md/core/extension/MatchExtensionHelper.java