Modernize openflowplugin-impl
[openflowplugin.git] / openflowplugin-impl / src / main / java / org / opendaylight / openflowplugin / impl / connection / listener / OpenflowProtocolListenerInitialImpl.java
index 08355bdf2658b2770c84b8ba1c5092015bf05dd8..eb9c190661d8eda11143eb2f6cc118d1a035bd0d 100644 (file)
@@ -7,7 +7,7 @@
  */
 package org.opendaylight.openflowplugin.impl.connection.listener;
 
-import com.google.common.base.Objects;
+import java.util.Objects;
 import org.opendaylight.openflowplugin.api.openflow.connection.ConnectionContext;
 import org.opendaylight.openflowplugin.api.openflow.connection.HandshakeContext;
 import org.opendaylight.openflowplugin.impl.connection.HandshakeStepWrapper;
@@ -123,7 +123,7 @@ public class OpenflowProtocolListenerInitialImpl implements OpenflowProtocolList
      */
     protected boolean checkState(final ConnectionContext.CONNECTION_STATE expectedState) {
         boolean verdict = true;
-        if (! Objects.equal(connectionContext.getConnectionState(), expectedState)) {
+        if (!Objects.equals(connectionContext.getConnectionState(), expectedState)) {
             verdict = false;
             LOG.info("Expected state: {}, actual state: {}", expectedState,
                     connectionContext.getConnectionState());