mirror of
https://github.com/opennetworkinglab/onos.git
synced 2025-10-17 02:11:38 +02:00
Check equality of String with equals(), not "=="
Change-Id: I0113edf6161d97578b2f21c3db21c7bcbd8fdce6
This commit is contained in:
parent
e4ba2a4460
commit
c218bfaa7c
@ -128,6 +128,7 @@ import java.util.Iterator;
|
||||
import java.util.LinkedList;
|
||||
import java.util.List;
|
||||
import java.util.ListIterator;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
import java.util.concurrent.Executors;
|
||||
import java.util.concurrent.ScheduledExecutorService;
|
||||
@ -841,7 +842,7 @@ public class PcepTunnelProvider extends AbstractProvider implements TunnelProvid
|
||||
*/
|
||||
private String getPcepTunnelKey(TunnelId tunnelId) {
|
||||
for (String key : tunnelMap.keySet()) {
|
||||
if (tunnelMap.get(key).id() == tunnelId.id()) {
|
||||
if (Objects.equals(tunnelMap.get(key).id(), tunnelId.id())) {
|
||||
return key;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user