Cleanup ConfigurationServiceFactoryOsgiImpl 57/94357/6
authorRobert Varga <robert.varga@pantheon.tech>
Sun, 3 Jan 2021 10:36:26 +0000 (11:36 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Sun, 3 Jan 2021 12:32:02 +0000 (13:32 +0100)
commit49b42fac11ee3c22f812036733cf4858e530eea1
tree2930135669aa90f4d8316842f86a6c3920d867bd
parent50139d4905ad1ce0499847d90d4379b15eaae540
Cleanup ConfigurationServiceFactoryOsgiImpl

Do not use Optional.ofNullable() for null checks and also properly
unget service after use.

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