Sho SHIMIZU

Check equality of String with equals(), not "=="

Change-Id: I0113edf6161d97578b2f21c3db21c7bcbd8fdce6
...@@ -128,6 +128,7 @@ import java.util.Iterator; ...@@ -128,6 +128,7 @@ import java.util.Iterator;
128 import java.util.LinkedList; 128 import java.util.LinkedList;
129 import java.util.List; 129 import java.util.List;
130 import java.util.ListIterator; 130 import java.util.ListIterator;
131 +import java.util.Objects;
131 import java.util.Optional; 132 import java.util.Optional;
132 import java.util.concurrent.Executors; 133 import java.util.concurrent.Executors;
133 import java.util.concurrent.ScheduledExecutorService; 134 import java.util.concurrent.ScheduledExecutorService;
...@@ -841,7 +842,7 @@ public class PcepTunnelProvider extends AbstractProvider implements TunnelProvid ...@@ -841,7 +842,7 @@ public class PcepTunnelProvider extends AbstractProvider implements TunnelProvid
841 */ 842 */
842 private String getPcepTunnelKey(TunnelId tunnelId) { 843 private String getPcepTunnelKey(TunnelId tunnelId) {
843 for (String key : tunnelMap.keySet()) { 844 for (String key : tunnelMap.keySet()) {
844 - if (tunnelMap.get(key).id() == tunnelId.id()) { 845 + if (Objects.equals(tunnelMap.get(key).id(), tunnelId.id())) {
845 return key; 846 return key;
846 } 847 }
847 } 848 }
......