Unused imports, missing serialVersionUID, unneeded cast. Formatting
changes courtesy autosave cleanup actions.
Change-Id: If85ef69d426b129170d5b55d0bd6893a901d50cc
Signed-off-by: Robert Varga <rovarga@cisco.com>
(cherry picked from commit
d25cd407fd8f5d038349db4bb2407d023afe3150)
*/
@Deprecated
public class FlowRegistryException extends Exception {
+ private static final long serialVersionUID = 7514092745206029217L;
public FlowRegistryException(final String message) {
super(message);
import org.opendaylight.openflowplugin.impl.connection.listener.HandshakeListenerImpl;
import org.opendaylight.openflowplugin.impl.connection.listener.OpenflowProtocolListenerInitialImpl;
import org.opendaylight.openflowplugin.impl.connection.listener.SystemNotificationsListenerImpl;
-import org.opendaylight.openflowplugin.impl.statistics.ofpspecific.SessionStatistics;
import org.opendaylight.openflowplugin.openflow.md.core.ErrorHandlerSimpleImpl;
import org.opendaylight.openflowplugin.openflow.md.core.HandshakeManagerImpl;
import org.opendaylight.openflowplugin.openflow.md.core.ThreadPoolLoggingExecutor;
private static final Logger LOG = LoggerFactory.getLogger(ConnectionManagerImpl.class);
private static final int HELLO_LIMIT = 20;
- private boolean bitmapNegotiationEnabled = true;
+ private final boolean bitmapNegotiationEnabled = true;
private DeviceConnectedHandler deviceConnectedHandler;
@Override
import java.util.List;
import org.apache.karaf.shell.commands.Command;
import org.apache.karaf.shell.console.OsgiCommandSupport;
-import org.opendaylight.openflowplugin.api.openflow.statistics.ofpspecific.MessageIntelligenceAgency;
-import org.opendaylight.openflowplugin.impl.OpenFlowPluginProviderImpl;
import org.opendaylight.openflowplugin.impl.statistics.ofpspecific.SessionStatistics;
/**
public FlowRegistryKeyFactory() {
}
- public static FlowRegistryKey create(Flow flow) {
+ public static FlowRegistryKey create(final Flow flow) {
return new FlowRegistryKeyDto(flow);
}
@Override
public boolean equals(final Object o) {
- if (this == o) return true;
- if (o == null || getClass() != o.getClass()) return false;
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
final FlowRegistryKeyDto that = (FlowRegistryKeyDto) o;
- if (priority != that.priority) return false;
- if (tableId != that.tableId) return false;
- if (!match.equals(that.match)) return false;
+ if (priority != that.priority) {
+ return false;
+ }
+ if (tableId != that.tableId) {
+ return false;
+ }
+ if (!match.equals(that.match)) {
+ return false;
+ }
return true;
}
@Override
public int hashCode() {
- int result = (int) tableId;
+ int result = tableId;
result = 31 * result + priority;
result = 31 * result + match.hashCode();
return result;
import org.opendaylight.openflowplugin.openflow.md.util.PortTranslatorUtil;
import org.opendaylight.yang.gen.v1.urn.opendaylight.flow.inventory.rev130819.FlowCapableNodeConnector;
import org.opendaylight.yang.gen.v1.urn.opendaylight.flow.inventory.rev130819.FlowCapableNodeConnectorBuilder;
-import org.opendaylight.yang.gen.v1.urn.opendaylight.flow.inventory.rev130819.Queue;
import org.opendaylight.yang.gen.v1.urn.opendaylight.flow.types.port.rev130925.PortNumberUni;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.PortGrouping;
import org.opendaylight.controller.sal.binding.api.BindingAwareBroker.ProviderContext;
import org.opendaylight.openflowjava.protocol.api.connection.ConnectionAdapter;
import org.opendaylight.openflowplugin.api.openflow.connection.ConnectionContext;
-import org.opendaylight.openflowplugin.api.openflow.rpc.RpcContext;
import org.opendaylight.openflowplugin.api.openflow.statistics.ofpspecific.MessageSpy;
import org.opendaylight.openflowplugin.impl.rpc.RpcContextImpl;
import org.opendaylight.openflowplugin.impl.rpc.RpcManagerImpl;