Skip to content

Commit b8057e3

Browse files
committed
Removes unnecessary semicolons
Signed-off-by: Otavio R. Piske <angusyoung@gmail.com>
1 parent 7cb6a01 commit b8057e3

9 files changed

Lines changed: 18 additions & 12 deletions

File tree

org.eclipse.paho.client.mqttv3/src/main/java/org/eclipse/paho/client/mqttv3/internal/CommsCallback.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,8 @@ public class CommsCallback implements Runnable {
5757
private Vector<MqttWireMessage> messageQueue;
5858
private Vector<MqttToken> completeQueue;
5959

60-
private enum State {STOPPED, RUNNING, QUIESCING};
60+
private enum State {STOPPED, RUNNING, QUIESCING}
61+
6162
private State current_state = State.STOPPED;
6263
private State target_state = State.STOPPED;
6364
private Object lifecycle = new Object();

org.eclipse.paho.client.mqttv3/src/main/java/org/eclipse/paho/client/mqttv3/internal/CommsReceiver.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ public class CommsReceiver implements Runnable {
3838
private static final String CLASS_NAME = CommsReceiver.class.getName();
3939
private Logger log = LoggerFactory.getLogger(LoggerFactory.MQTT_CLIENT_MSG_CAT, CLASS_NAME);
4040

41-
private enum State {STOPPED, RUNNING, STARTING, RECEIVING};
41+
private enum State {STOPPED, RUNNING, STARTING, RECEIVING}
42+
4243
private State current_state = State.STOPPED;
4344
private State target_state = State.STOPPED;
4445
private Object lifecycle = new Object();

org.eclipse.paho.client.mqttv3/src/main/java/org/eclipse/paho/client/mqttv3/internal/CommsSender.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,9 @@ public class CommsSender implements Runnable {
3535
private Logger log = LoggerFactory.getLogger(LoggerFactory.MQTT_CLIENT_MSG_CAT, CLASS_NAME);
3636

3737
//Sends MQTT packets to the server on its own thread
38-
private enum State {STOPPED, RUNNING, STARTING};
39-
private State current_state = State.STOPPED;
38+
private enum State {STOPPED, RUNNING, STARTING}
39+
40+
private State current_state = State.STOPPED;
4041
private State target_state = State.STOPPED;
4142
private Object lifecycle = new Object();
4243
private Thread sendThread = null;

org.eclipse.paho.client.mqttv3/src/main/java/org/eclipse/paho/client/mqttv3/internal/security/SSLSocketFactoryFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -818,7 +818,7 @@ private String getProperty(String configID, String ibmKey, String sysProperty) {
818818
private String getPropertyFromConfig(String configID, String ibmKey) {
819819
String res = null;
820820
Properties p =null;
821-
if(configID!=null) {;
821+
if(configID!=null) {
822822
p = (Properties) configs.get(configID);
823823
}
824824
if (p != null) {

org.eclipse.paho.mqttv5.client/src/main/java/org/eclipse/paho/mqttv5/client/internal/CommsCallback.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,8 @@ public class CommsCallback implements Runnable {
6565
private ArrayList<MqttPublish> messageQueue;
6666
private ArrayList<MqttToken> completeQueue;
6767

68-
private enum State {STOPPED, RUNNING, QUIESCING};
68+
private enum State {STOPPED, RUNNING, QUIESCING}
69+
6970
private State current_state = State.STOPPED;
7071
private State target_state = State.STOPPED;
7172
private Object lifecycle = new Object();

org.eclipse.paho.mqttv5.client/src/main/java/org/eclipse/paho/mqttv5/client/internal/CommsReceiver.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ public class CommsReceiver implements Runnable {
3737
private static final String CLASS_NAME = CommsReceiver.class.getName();
3838
private Logger log = LoggerFactory.getLogger(LoggerFactory.MQTT_CLIENT_MSG_CAT, CLASS_NAME);
3939

40-
private enum State {STOPPED, RUNNING, STARTING, RECEIVING};
40+
private enum State {STOPPED, RUNNING, STARTING, RECEIVING}
41+
4142
private State current_state = State.STOPPED;
4243
private State target_state = State.STOPPED;
4344
private Object lifecycle = new Object();

org.eclipse.paho.mqttv5.client/src/main/java/org/eclipse/paho/mqttv5/client/internal/CommsSender.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,9 @@ public class CommsSender implements Runnable {
3636
private Logger log = LoggerFactory.getLogger(LoggerFactory.MQTT_CLIENT_MSG_CAT, CLASS_NAME);
3737

3838
//Sends MQTT packets to the server on its own thread
39-
private enum State {STOPPED, RUNNING, STARTING};
40-
private State current_state = State.STOPPED;
39+
private enum State {STOPPED, RUNNING, STARTING}
40+
41+
private State current_state = State.STOPPED;
4142
private State target_state = State.STOPPED;
4243
private Object lifecycle = new Object();
4344
private Thread sendThread = null;

org.eclipse.paho.mqttv5.client/src/main/java/org/eclipse/paho/mqttv5/client/security/SSLSocketFactoryFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -818,7 +818,7 @@ private String getProperty(String configID, String ibmKey, String sysProperty) {
818818
private String getPropertyFromConfig(String configID, String ibmKey) {
819819
String res = null;
820820
Properties p =null;
821-
if(configID!=null) {;
821+
if(configID!=null) {
822822
p = (Properties) configs.get(configID);
823823
}
824824
if (p != null) {

org.eclipse.paho.sample.utility/src/main/java/org/eclipse/paho/sample/utility/MQTTFrame.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -752,8 +752,8 @@ public void startTrace() throws MqttException {
752752
public void stopTrace() {
753753
traceEnabled = false;
754754
if ( mqtt != null ) {
755-
/*mqtt.stopTrace()*/;
756-
JOptionPane.showMessageDialog( frame, "Trace file mqe0.trc generated in the current directory",
755+
/*mqtt.stopTrace()*/
756+
JOptionPane.showMessageDialog( frame, "Trace file mqe0.trc generated in the current directory",
757757
"MQTT Trace", JOptionPane.INFORMATION_MESSAGE );
758758
}
759759
}

0 commit comments

Comments
 (0)