X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=plugin%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fovsdb%2Fplugin%2Fimpl%2FConnectionServiceImpl.java;h=8582174d835096e3e94dc1c4e2049dad70dbbf69;hb=c6efe31a199b6aba3c346da19c3fb4c2e70709af;hp=6aa9cd1f52d892297cedd158ab1557fde8a230ff;hpb=9c6b8bc06e2ce02ddd16506ee9798feac220496f;p=netvirt.git diff --git a/plugin/src/main/java/org/opendaylight/ovsdb/plugin/impl/ConnectionServiceImpl.java b/plugin/src/main/java/org/opendaylight/ovsdb/plugin/impl/ConnectionServiceImpl.java index 6aa9cd1f52..8582174d83 100644 --- a/plugin/src/main/java/org/opendaylight/ovsdb/plugin/impl/ConnectionServiceImpl.java +++ b/plugin/src/main/java/org/opendaylight/ovsdb/plugin/impl/ConnectionServiceImpl.java @@ -150,7 +150,9 @@ public class ConnectionServiceImpl implements OvsdbConnectionService, try { port = Integer.parseInt(params.get(ConnectionConstants.PORT)); - if (port == 0) port = DEFAULT_OVSDB_PORT; + if (port == 0) { + port = DEFAULT_OVSDB_PORT; + } } catch (Exception e) { port = DEFAULT_OVSDB_PORT; } @@ -343,7 +345,9 @@ public class ConnectionServiceImpl implements OvsdbConnectionService, @Override public void disconnected(OvsdbClient client) { Connection connection = ovsdbConnections.get(this.getConnectionIdentifier(client)); - if (connection == null) return; + if (connection == null) { + return; + } this.disconnect(connection.getNode()); } }