Simplify DeviceContextImpl flow counting 81/82581/5
authorRobert Varga <robert.varga@pantheon.tech>
Thu, 20 Jun 2019 10:20:38 +0000 (12:20 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Thu, 27 Jun 2019 12:58:23 +0000 (14:58 +0200)
commit5059c1533b433972148f4f604a7d88c4e9b26971
treec59957846a6f98155fef6a6b592a4db7a17e9220
parent9da05c313a96bea71e38e23ae657972c4cf62c0b
Simplify DeviceContextImpl flow counting

The code to count flows for debugging purposes is a rather arcane
stream. Simplify it by transforming some amount of code from
functional to imperative programming and taking advantage of
nonnullFoo() methods.

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