Skip to content

Commit 2172a96

Browse files
author
Ranjan Dasgupta
authored
Merge pull request #823 from henry-lp/repairnator-patch-2020-08-29_1848
Proposal for patching SonarQube rule 4973
2 parents 01926a2 + 4fb3a7a commit 2172a96

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)