commit | aa1fac791a0afb7464b2c4778347164e95481db8 | [log] [tgz] |
---|---|---|
author | Yuta HIGUCHI <y-higuchi@onlab.us> | Sun Dec 15 14:47:56 2013 -0800 |
committer | Yuta HIGUCHI <y-higuchi@onlab.us> | Sun Dec 15 14:47:56 2013 -0800 |
tree | 9766c166b62c6024f64f1f9e063f20c48ff009a0 | |
parent | 69c8a243295f23ad953675af957acf6f26ffb722 [diff] |
bug fix: comparing String with ==
diff --git a/src/main/java/net/onrc/onos/ofcontroller/core/internal/SwitchStorageImpl.java b/src/main/java/net/onrc/onos/ofcontroller/core/internal/SwitchStorageImpl.java index 5f51b58..3fcbd74 100644 --- a/src/main/java/net/onrc/onos/ofcontroller/core/internal/SwitchStorageImpl.java +++ b/src/main/java/net/onrc/onos/ofcontroller/core/internal/SwitchStorageImpl.java
@@ -433,7 +433,7 @@ // and takes forever. boolean attached = false; for (IPortObject portsOnSwitch : sw.getPorts()) { - if (portsOnSwitch.getPortId() == portObject.getPortId()) { + if (portsOnSwitch.getPortId().equals( portObject.getPortId() )) { attached = true; break; }