File tree Expand file tree Collapse file tree
org.eclipse.paho.client.mqttv3/src/main/java/org/eclipse/paho/client/mqttv3 Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ public class MqttAsyncClient implements IMqttAsyncClient { // DestinationProvide
7878 private static final String CLASS_NAME = MqttAsyncClient .class .getName ();
7979 private static final Logger log = LoggerFactory .getLogger (LoggerFactory .MQTT_CLIENT_MSG_CAT ,CLASS_NAME );
8080
81- private static final String CLIENT_ID_PREFIX = "paho- " ;
81+ private static final String CLIENT_ID_PREFIX = "paho" ;
8282 private static final long QUIESCE_TIMEOUT = 30000 ; // ms
8383 private static final long DISCONNECT_TIMEOUT = 10000 ; // ms
8484 private static final char MIN_HIGH_SURROGATE = '\uD800' ;
@@ -791,7 +791,7 @@ public void setCallback(MqttCallback callback) {
791791 }
792792
793793 /**
794- * Returns a randomly generated client identifier based on the the fixed prefix (paho- )
794+ * Returns a randomly generated client identifier based on the the fixed prefix (paho)
795795 * and the system time.
796796 * <p>When cleanSession is set to false, an application must ensure it uses the
797797 * same client identifier when it reconnects to the server to resume state and maintain
@@ -800,7 +800,7 @@ public void setCallback(MqttCallback callback) {
800800 * @see MqttConnectOptions#setCleanSession(boolean)
801801 */
802802 public static String generateClientId () {
803- //length of nanoTime = 15, so total length = 20 < 65535(defined in spec)
803+ //length of nanoTime = 15, so total length = 19 < 65535(defined in spec)
804804 return CLIENT_ID_PREFIX + System .nanoTime ();
805805 }
806806
You can’t perform that action at this time.
0 commit comments