Skip to content

Commit 7cb6a01

Browse files
committed
Removes unnecessary visibility/accessor modifiers
Signed-off-by: Otavio R. Piske <angusyoung@gmail.com>
1 parent bfe401f commit 7cb6a01

44 files changed

Lines changed: 349 additions & 349 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

org.eclipse.paho.client.mqttv3.test/src/test/java/org/eclipse/paho/client/mqttv3/test/LiveTakeOverTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public class LiveTakeOverTest {
4545
private static String topicPrefix;
4646

4747

48-
static enum FirstClientState {
48+
enum FirstClientState {
4949
INITIAL,
5050
READY,
5151
RUNNING,

org.eclipse.paho.client.mqttv3/src/main/java/org/eclipse/paho/client/mqttv3/IMqttActionListener.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public interface IMqttActionListener {
1515
* This method is invoked when an action has completed successfully.
1616
* @param asyncActionToken associated with the action that has completed
1717
*/
18-
public void onSuccess(IMqttToken asyncActionToken );
18+
void onSuccess(IMqttToken asyncActionToken);
1919
/**
2020
* This method is invoked when an action fails.
2121
* If a client is disconnected while an action is in progress
@@ -26,5 +26,5 @@ public interface IMqttActionListener {
2626
* @param asyncActionToken associated with the action that has failed
2727
* @param exception thrown by the action that has failed
2828
*/
29-
public void onFailure(IMqttToken asyncActionToken, Throwable exception);
29+
void onFailure(IMqttToken asyncActionToken, Throwable exception);
3030
}

org.eclipse.paho.client.mqttv3/src/main/java/org/eclipse/paho/client/mqttv3/IMqttAsyncClient.java

Lines changed: 40 additions & 40 deletions
Large diffs are not rendered by default.

org.eclipse.paho.client.mqttv3/src/main/java/org/eclipse/paho/client/mqttv3/IMqttClient.java

Lines changed: 38 additions & 38 deletions
Large diffs are not rendered by default.

org.eclipse.paho.client.mqttv3/src/main/java/org/eclipse/paho/client/mqttv3/IMqttDeliveryToken.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,5 +36,5 @@ public interface IMqttDeliveryToken extends IMqttToken {
3636
* @return the message associated with this token or null if already delivered.
3737
* @throws MqttException if there was a problem completing retrieving the message
3838
*/
39-
public MqttMessage getMessage() throws MqttException;
39+
MqttMessage getMessage() throws MqttException;
4040
}

org.eclipse.paho.client.mqttv3/src/main/java/org/eclipse/paho/client/mqttv3/IMqttMessageListener.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,5 +52,5 @@ public interface IMqttMessageListener {
5252
* @throws Exception if a terminal error has occurred, and the client should be
5353
* shut down.
5454
*/
55-
public void messageArrived(String topic, MqttMessage message) throws Exception;
55+
void messageArrived(String topic, MqttMessage message) throws Exception;
5656
}

org.eclipse.paho.client.mqttv3/src/main/java/org/eclipse/paho/client/mqttv3/IMqttToken.java

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public interface IMqttToken {
4646
* @throws MqttException if there was a problem with the action associated with the token.
4747
* @see #waitForCompletion(long)
4848
*/
49-
public void waitForCompletion() throws MqttException;
49+
void waitForCompletion() throws MqttException;
5050

5151
/**
5252
* Blocks the current thread until the action this token is associated with has
@@ -61,7 +61,7 @@ public interface IMqttToken {
6161
* @param timeout the maximum amount of time to wait for, in milliseconds.
6262
* @throws MqttException if there was a problem with the action associated with the token.
6363
*/
64-
public void waitForCompletion(long timeout) throws MqttException;
64+
void waitForCompletion(long timeout) throws MqttException;
6565

6666
/**
6767
* Returns whether or not the action has finished.
@@ -71,7 +71,7 @@ public interface IMqttToken {
7171
* </p>
7272
* @return whether or not the action has finished.
7373
*/
74-
public boolean isComplete();
74+
boolean isComplete();
7575

7676
/**
7777
* Returns an exception providing more detail if an operation failed.
@@ -82,7 +82,7 @@ public interface IMqttToken {
8282
* @return exception may return an exception if the operation failed. Null will be
8383
* returned while action is in progress and if action completes successfully.
8484
*/
85-
public MqttException getException();
85+
MqttException getException();
8686

8787
/**
8888
* Register a listener to be notified when an action completes.
@@ -91,20 +91,20 @@ public interface IMqttToken {
9191
* </p>
9292
* @param listener to be invoked once the action completes
9393
*/
94-
public void setActionCallback(IMqttActionListener listener);
94+
void setActionCallback(IMqttActionListener listener);
9595

9696
/**
9797
* Return the async listener for this token.
9898
* @return listener that is set on the token or null if a listener is not registered.
9999
*/
100-
public IMqttActionListener getActionCallback();
100+
IMqttActionListener getActionCallback();
101101

102102
/**
103103
* Returns the MQTT client that is responsible for processing the asynchronous
104104
* action
105105
* @return the client
106106
*/
107-
public IMqttAsyncClient getClient();
107+
IMqttAsyncClient getClient();
108108

109109
/**
110110
* Returns the topic string(s) for the action being tracked by this
@@ -113,7 +113,7 @@ public interface IMqttToken {
113113
*
114114
* @return the topic string(s) for the subscribe being tracked by this token or null
115115
*/
116-
public String[] getTopics();
116+
String[] getTopics();
117117

118118
/**
119119
* Store some context associated with an action.
@@ -123,7 +123,7 @@ public interface IMqttToken {
123123
* actions</p>
124124
* @param userContext to associate with an action
125125
*/
126-
public void setUserContext(Object userContext);
126+
void setUserContext(Object userContext);
127127

128128
/**
129129
* Retrieve the context associated with an action.
@@ -133,7 +133,7 @@ public interface IMqttToken {
133133
134134
* @return Object context associated with an action or null if there is none.
135135
*/
136-
public Object getUserContext();
136+
Object getUserContext();
137137

138138
/**
139139
* Returns the message ID of the message that is associated with the token.
@@ -143,21 +143,21 @@ public interface IMqttToken {
143143
* the MQTT message id flowed over the network.
144144
* @return the message ID of the message that is associated with the token
145145
*/
146-
public int getMessageId();
146+
int getMessageId();
147147

148148
/**
149149
* @return the granted QoS list from a suback
150150
*/
151-
public int[] getGrantedQos();
151+
int[] getGrantedQos();
152152

153153
/**
154154
* @return the session present flag from a connack
155155
*/
156-
public boolean getSessionPresent();
156+
boolean getSessionPresent();
157157

158158
/**
159159
* @return the response wire message
160160
*/
161-
public MqttWireMessage getResponse();
161+
MqttWireMessage getResponse();
162162

163163
}

org.eclipse.paho.client.mqttv3/src/main/java/org/eclipse/paho/client/mqttv3/MqttCallback.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public interface MqttCallback {
2929
*
3030
* @param cause the reason behind the loss of connection.
3131
*/
32-
public void connectionLost(Throwable cause);
32+
void connectionLost(Throwable cause);
3333

3434
/**
3535
* This method is called when a message arrives from the server.
@@ -62,7 +62,7 @@ public interface MqttCallback {
6262
* @throws Exception if a terminal error has occurred, and the client should be
6363
* shut down.
6464
*/
65-
public void messageArrived(String topic, MqttMessage message) throws Exception;
65+
void messageArrived(String topic, MqttMessage message) throws Exception;
6666

6767
/**
6868
* Called when delivery for a message has been completed, and all
@@ -74,6 +74,6 @@ public interface MqttCallback {
7474
*
7575
* @param token the delivery token associated with the message.
7676
*/
77-
public void deliveryComplete(IMqttDeliveryToken token);
77+
void deliveryComplete(IMqttDeliveryToken token);
7878

7979
}

org.eclipse.paho.client.mqttv3/src/main/java/org/eclipse/paho/client/mqttv3/MqttCallbackExtended.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,6 @@ public interface MqttCallbackExtended extends MqttCallback {
2929
* @param reconnect If true, the connection was the result of automatic reconnect.
3030
* @param serverURI The server URI that the connection was made to.
3131
*/
32-
public void connectComplete(boolean reconnect, String serverURI);
32+
void connectComplete(boolean reconnect, String serverURI);
3333

3434
}

org.eclipse.paho.client.mqttv3/src/main/java/org/eclipse/paho/client/mqttv3/MqttClientPersistence.java

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,14 @@ public interface MqttClientPersistence extends AutoCloseable {
4545
* @param serverURI The connection string as specified when the MQTT client instance was created.
4646
* @throws MqttPersistenceException if there was a problem opening the persistent store.
4747
*/
48-
public void open(String clientId, String serverURI) throws MqttPersistenceException;
48+
void open(String clientId, String serverURI) throws MqttPersistenceException;
4949

5050
/**
5151
* Close the persistent store that was previously opened.
5252
* This will be called when a client application disconnects from the broker.
5353
* @throws MqttPersistenceException if an error occurs closing the persistence store.
54-
*/
55-
public void close() throws MqttPersistenceException;
54+
*/
55+
void close() throws MqttPersistenceException;
5656

5757
/**
5858
* Puts the specified data into the persistent store.
@@ -61,7 +61,7 @@ public interface MqttClientPersistence extends AutoCloseable {
6161
* @throws MqttPersistenceException if there was a problem putting the data
6262
* into the persistent store.
6363
*/
64-
public void put(String key, MqttPersistable persistable) throws MqttPersistenceException;
64+
void put(String key, MqttPersistable persistable) throws MqttPersistenceException;
6565

6666
/**
6767
* Gets the specified data out of the persistent store.
@@ -70,33 +70,33 @@ public interface MqttClientPersistence extends AutoCloseable {
7070
* @throws MqttPersistenceException if there was a problem getting the data
7171
* from the persistent store.
7272
*/
73-
public MqttPersistable get(String key) throws MqttPersistenceException;
73+
MqttPersistable get(String key) throws MqttPersistenceException;
7474

7575
/**
7676
* Remove the data for the specified key.
7777
* @param key The key for the data to remove
7878
* @throws MqttPersistenceException if there was a problem removing the data.
7979
*/
80-
public void remove(String key) throws MqttPersistenceException;
80+
void remove(String key) throws MqttPersistenceException;
8181

8282
/**
8383
* Returns an Enumeration over the keys in this persistent data store.
8484
* @return an enumeration of {@link String} objects.
8585
* @throws MqttPersistenceException if there was a problem getting they keys
8686
*/
87-
public Enumeration keys() throws MqttPersistenceException;
87+
Enumeration keys() throws MqttPersistenceException;
8888

8989
/**
9090
* Clears persistence, so that it no longer contains any persisted data.
9191
* @throws MqttPersistenceException if there was a problem clearing all data from the persistence store
9292
*/
93-
public void clear() throws MqttPersistenceException;
93+
void clear() throws MqttPersistenceException;
9494

9595
/**
9696
* Returns whether or not data is persisted using the specified key.
9797
* @param key the key for data, which was used when originally saving it.
9898
* @return True if the persistence store contains the key
9999
* @throws MqttPersistenceException if there was a problem checking whether they key existed.
100100
*/
101-
public boolean containsKey(String key) throws MqttPersistenceException;
101+
boolean containsKey(String key) throws MqttPersistenceException;
102102
}

0 commit comments

Comments
 (0)