Skip to content

Commit cfd698a

Browse files
authored
Fix 'occured' -> 'occurred' typos in 3 files (#1939)
- activemq-ra/.../SimpleConnectionManager.java: four user-visible LOG.warn messages emitted from connectionClosed / connectionErrorOccurred. - activemq-client/.../TransportListener.java: Javadoc on onException(). - activemq-broker/.../JmsConnector.java: @param Javadoc on handleConnectionFailure(). No functional changes. Signed-off-by: Sai Asish Y <say.apm35@gmail.com>
1 parent ca34bcd commit cfd698a

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

activemq-broker/src/main/java/org/apache/activemq/network/jms/JmsConnector.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -484,7 +484,7 @@ public boolean isFailed() {
484484
* during normal bridging operations.
485485
*
486486
* @param connection
487-
* The connection that was in use when the failure occured.
487+
* The connection that was in use when the failure occurred.
488488
*/
489489
void handleConnectionFailure(Connection connection) {
490490

activemq-client/src/main/java/org/apache/activemq/transport/TransportListener.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public interface TransportListener {
3232
*/
3333
void onCommand(Object command);
3434
/**
35-
* An unrecoverable exception has occured on the transport
35+
* An unrecoverable exception has occurred on the transport
3636
* @param error
3737
*/
3838
void onException(IOException error);

activemq-ra/src/main/java/org/apache/activemq/ra/SimpleConnectionManager.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,12 +58,12 @@ public void connectionClosed(ConnectionEvent event) {
5858
try {
5959
((ManagedConnection)event.getSource()).cleanup();
6060
} catch (ResourceException e) {
61-
LOG.warn("Error occured during the cleanup of a managed connection: ", e);
61+
LOG.warn("Error occurred during the cleanup of a managed connection: ", e);
6262
}
6363
try {
6464
((ManagedConnection)event.getSource()).destroy();
6565
} catch (ResourceException e) {
66-
LOG.warn("Error occured during the destruction of a managed connection: ", e);
66+
LOG.warn("Error occurred during the destruction of a managed connection: ", e);
6767
}
6868
}
6969

@@ -93,12 +93,12 @@ public void connectionErrorOccurred(ConnectionEvent event) {
9393
try {
9494
((ManagedConnection)event.getSource()).cleanup();
9595
} catch (ResourceException e) {
96-
LOG.warn("Error occured during the cleanup of a managed connection: ", e);
96+
LOG.warn("Error occurred during the cleanup of a managed connection: ", e);
9797
}
9898
try {
9999
((ManagedConnection)event.getSource()).destroy();
100100
} catch (ResourceException e) {
101-
LOG.warn("Error occured during the destruction of a managed connection: ", e);
101+
LOG.warn("Error occurred during the destruction of a managed connection: ", e);
102102
}
103103
}
104104

0 commit comments

Comments
 (0)