Skip to content

Commit 4fb3a7a

Browse files
author
henry-lp
committed
Proposal for patching SonarQube rule 4973
Signed-off-by: henry-lp <tailp@kth.se>
1 parent 6f35dcb commit 4fb3a7a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • org.eclipse.paho.sample.mqttclient/src/main/java/org/eclipse/paho/sample/mqttclient/mqttv3

org.eclipse.paho.sample.mqttclient/src/main/java/org/eclipse/paho/sample/mqttclient/mqttv3/MqttV3Connection.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public MqttV3Connection(CommandLine cliOptions) throws URISyntaxException {
6969

7070

7171
// If the client ID was not set, generate one ourselves
72-
if (clientID == null || clientID == "") {
72+
if (clientID == null || clientID.equals("") ) {
7373
// No client ID provided, generate one from the process ID
7474
long pid = Thread.currentThread().getId(); //ProcessHandle.current().pid();
7575
clientID = "mqtt-client-" + pid;

0 commit comments

Comments
 (0)