From b1f4e0f2f93e8f49c4aea98baeb8706e5fbfe2cb Mon Sep 17 00:00:00 2001 From: Jon Hall Date: Wed, 22 Feb 2017 13:36:16 -0800 Subject: [PATCH] Replace non-looping while with an if Change-Id: I1e05b4b9c311f5ded063663f2113e0b8a1bb7e85 --- .../onosproject/ovsdb/controller/impl/OvsdbControllerImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/protocols/ovsdb/ctl/src/main/java/org/onosproject/ovsdb/controller/impl/OvsdbControllerImpl.java b/protocols/ovsdb/ctl/src/main/java/org/onosproject/ovsdb/controller/impl/OvsdbControllerImpl.java index 8258a74782..1b9e7d4d43 100644 --- a/protocols/ovsdb/ctl/src/main/java/org/onosproject/ovsdb/controller/impl/OvsdbControllerImpl.java +++ b/protocols/ovsdb/ctl/src/main/java/org/onosproject/ovsdb/controller/impl/OvsdbControllerImpl.java @@ -342,7 +342,7 @@ public class OvsdbControllerImpl implements OvsdbController { OvsdbSet ofPortSet = (OvsdbSet) intf.getOpenFlowPortColumn().data(); @SuppressWarnings("unchecked") Set ofPorts = ofPortSet.set(); - while (ofPorts == null || ofPorts.isEmpty()) { + if (ofPorts == null || ofPorts.isEmpty()) { log.debug("The ofport is null in {}", intf.getName()); return -1; }