Speed up DeviceGroupRegistry.isGroupPresent() 64/94364/2
authorRobert Varga <robert.varga@pantheon.tech>
Sun, 3 Jan 2021 15:13:58 +0000 (16:13 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Sun, 3 Jan 2021 15:32:49 +0000 (16:32 +0100)
commite151977e4c3e6bd81fcb4ba5fce129b7b98a3bb4
treef147fe3c970f0cb19af716677ef945f6f099dcf4
parente6ac43fd779f85adf9f08b1f4a98831e22a24a99
Speed up DeviceGroupRegistry.isGroupPresent()

Sonar is complaining about an explicit 'false' here, fix that warning
by storing the result and having a proper expression. This ends up
being faster, as we perform only a single lookup.

Change-Id: I9c96a3c01be5e01fbb215bc0d86c78f06185fe30
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
applications/forwardingrules-manager/src/main/java/org/opendaylight/openflowplugin/applications/frm/impl/DevicesGroupRegistry.java