Skip to content

Commit dfca976

Browse files
committed
Issue #540 - Fixed all instances where the typo occured occurred.
Signed-off-by: James Sutton <james.sutton@uk.ibm.com>
1 parent 9740268 commit dfca976

14 files changed

Lines changed: 26 additions & 20 deletions

File tree

org.eclipse.paho.client.mqttv3/src/main/java-templates/org/eclipse/paho/client/mqttv3/internal/ClientComms.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -697,7 +697,7 @@ public void run() {
697697

698698
try {
699699
// Reset an exception on existing delivery tokens.
700-
// This will have been set if disconnect occured before delivery was
700+
// This will have been set if disconnect occurred before delivery was
701701
// fully processed.
702702
MqttDeliveryToken[] toks = tokenStore.getOutstandingDelTokens();
703703
for (int i=0; i<toks.length; i++) {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ public void run() {
110110
deleteMessage(0);
111111
} catch (MqttException ex) {
112112
// Error occurred attempting to publish buffered message likely because the client is not connected
113-
// @TRACE 517=Error occured attempting to publish buffered message due to disconnect.
113+
// @TRACE 517=Error occurred attempting to publish buffered message due to disconnect.
114114
log.warning(CLASS_NAME, methodName, "517");
115115
break;
116116
}

org.eclipse.paho.client.mqttv3/src/main/java/org/eclipse/paho/client/mqttv3/persist/MqttDefaultFilePersistence.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ private boolean isSafeChar(char c) {
266266
* Identifies any backup files in the specified directory and restores them
267267
* to their original file. This will overwrite any existing file of the same
268268
* name. This is safe as a stray backup file will only exist if a problem
269-
* occured whilst writing to the original file.
269+
* occurred whilst writing to the original file.
270270
* @param dir The directory in which to scan and restore backups
271271
*/
272272
private void restoreBackups(File dir) throws MqttPersistenceException {

org.eclipse.paho.mqttv5.client/src/main/java/org/eclipse/paho/mqttv5/client/MqttAsyncClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1702,7 +1702,7 @@ public void disconnected(MqttDisconnectResponse disconnectResponse) {
17021702
}
17031703
}
17041704

1705-
public void mqttErrorOccured(MqttException exception) {
1705+
public void mqttErrorOccurred(MqttException exception) {
17061706
}
17071707

17081708
public void authPacketArrived(int reasonCode, MqttProperties properties) {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public interface MqttCallback {
5252
* @param exception
5353
* - The exception thrown causing the error.
5454
*/
55-
public void mqttErrorOccured(MqttException exception);
55+
public void mqttErrorOccurred(MqttException exception);
5656

5757
/**
5858
* This method is called when a message arrives from the server.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -775,7 +775,7 @@ public void run() {
775775

776776
try {
777777
// Reset an exception on existing delivery tokens.
778-
// This will have been set if disconnect occured before delivery was
778+
// This will have been set if disconnect occurred before delivery was
779779
// fully processed.
780780
MqttDeliveryToken[] toks = tokenStore.getOutstandingDelTokens();
781781
for (int i = 0; i < toks.length; i++) {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1136,7 +1136,7 @@ protected void notifyReceivedMsg(MqttWireMessage message) throws MqttException {
11361136
new Object[] { Integer.valueOf(this.mqttSession.getIncomingTopicAliasMax()),
11371137
Integer.valueOf(incomingTopicAlias) });
11381138
if (callback != null) {
1139-
callback.mqttErrorOccured(new MqttException(MqttException.REASON_CODE_INVALID_TOPIC_ALAS));
1139+
callback.mqttErrorOccurred(new MqttException(MqttException.REASON_CODE_INVALID_TOPIC_ALAS));
11401140
}
11411141
throw new MqttException(MqttClientException.REASON_CODE_INVALID_TOPIC_ALAS);
11421142

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -404,11 +404,11 @@ public void authMessageReceived(MqttAuth authMessage) {
404404
* The exception that was thrown containing the cause for
405405
* disconnection.
406406
*/
407-
public void mqttErrorOccured(MqttException exception) {
408-
final String methodName = "mqttErrorOccured";
407+
public void mqttErrorOccurred(MqttException exception) {
408+
final String methodName = "mqttErrorOccurred";
409409
log.warning(CLASS_NAME, methodName, "721", new Object[] { exception.getMessage() });
410410
if (mqttCallback != null) {
411-
mqttCallback.mqttErrorOccured(exception);
411+
mqttCallback.mqttErrorOccurred(exception);
412412
}
413413
}
414414

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ public void run() {
111111
deleteMessage(0);
112112
} catch (MqttException ex) {
113113
// Error occurred attempting to publish buffered message likely because the client is not connected
114-
// @TRACE 517=Error occured attempting to publish buffered message due to disconnect.
114+
// @TRACE 517=Error occurred attempting to publish buffered message due to disconnect.
115115
log.warning(CLASS_NAME, methodName, "517");
116116
break;
117117
}

org.eclipse.paho.mqttv5.client/src/main/java/org/eclipse/paho/mqttv5/client/persist/MqttDefaultFilePersistence.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ private boolean isSafeChar(char c) {
258258
* Identifies any backup files in the specified directory and restores them
259259
* to their original file. This will overwrite any existing file of the same
260260
* name. This is safe as a stray backup file will only exist if a problem
261-
* occured whilst writing to the original file.
261+
* occurred whilst writing to the original file.
262262
* @param dir The directory in which to scan and restore backups
263263
*/
264264
private void restoreBackups(File dir) throws MqttPersistenceException {

0 commit comments

Comments
 (0)