diff --git a/RUNNING_TESTS.md b/RUNNING_TESTS.md index a449a0d099..a6da665d52 100644 --- a/RUNNING_TESTS.md +++ b/RUNNING_TESTS.md @@ -21,7 +21,7 @@ can control the running node. `./mvnw verify` will start those nodes with the appropriate configuration. -To easily fullfil all those requirements, you should use `make deps` to +To easily fulfill all those requirements, you should use `make deps` to fetch the dependencies in the `deps` directory. You then run Maven with the `deps.dir` property set like this: diff --git a/src/main/java/com/rabbitmq/client/ConnectionFactory.java b/src/main/java/com/rabbitmq/client/ConnectionFactory.java index 9a9ea410ac..cbc055bf99 100644 --- a/src/main/java/com/rabbitmq/client/ConnectionFactory.java +++ b/src/main/java/com/rabbitmq/client/ConnectionFactory.java @@ -307,7 +307,7 @@ public void setVirtualHost(String virtualHost) { /** * Convenience method for setting the fields in an AMQP URI: host, * port, username, password and virtual host. If any part of the - * URI is ommited, the ConnectionFactory's corresponding variable + * URI is omitted, the ConnectionFactory's corresponding variable * is left unchanged. * @param uri is the AMQP URI containing the data */ @@ -366,7 +366,7 @@ public void setUri(URI uri) /** * Convenience method for setting the fields in an AMQP URI: host, * port, username, password and virtual host. If any part of the - * URI is ommited, the ConnectionFactory's corresponding variable + * URI is omitted, the ConnectionFactory's corresponding variable * is left unchanged. Note that not all valid AMQP URIs are * accepted; in particular, the hostname must be given if the * port, username or password are given, and escapes in the @@ -674,7 +674,7 @@ public boolean isSSL(){ public void useSslProtocol() throws NoSuchAlgorithmException, KeyManagementException { - useSslProtocol(computeDefaultTlsProcotol(SSLContext.getDefault().getSupportedSSLParameters().getProtocols())); + useSslProtocol(computeDefaultTlsProtocol(SSLContext.getDefault().getSupportedSSLParameters().getProtocols())); } /** @@ -777,7 +777,7 @@ protected void enableHostnameVerificationForBlockingIo() { } } - public static String computeDefaultTlsProcotol(String[] supportedProtocols) { + public static String computeDefaultTlsProtocol(String[] supportedProtocols) { if(supportedProtocols != null) { for (String supportedProtocol : supportedProtocols) { if(PREFERRED_TLS_PROTOCOL.equalsIgnoreCase(supportedProtocol)) { diff --git a/src/main/java/com/rabbitmq/client/impl/AMQConnection.java b/src/main/java/com/rabbitmq/client/impl/AMQConnection.java index d65008d96a..48949b4ca4 100644 --- a/src/main/java/com/rabbitmq/client/impl/AMQConnection.java +++ b/src/main/java/com/rabbitmq/client/impl/AMQConnection.java @@ -851,7 +851,7 @@ public void handleConnectionClose(Command closeCommand) { SocketCloseWait scw = new SocketCloseWait(sse); // if shutdown executor is configured, use it. Otherwise - // execut socket close monitor the old fashioned way. + // execute socket close monitor the old fashioned way. // see rabbitmq/rabbitmq-java-client#91 if(shutdownExecutor != null) { shutdownExecutor.execute(scw); diff --git a/src/main/java/com/rabbitmq/client/impl/ChannelN.java b/src/main/java/com/rabbitmq/client/impl/ChannelN.java index 17bee9ffe7..aea0ee7a4b 100644 --- a/src/main/java/com/rabbitmq/client/impl/ChannelN.java +++ b/src/main/java/com/rabbitmq/client/impl/ChannelN.java @@ -602,7 +602,7 @@ public AMQCommand transformReply(AMQCommand command) { boolean notify = false; try { // Synchronize the block below to avoid race conditions in case - // connnection wants to send Connection-CloseOK + // connection wants to send Connection-CloseOK synchronized (_channelMutex) { startProcessShutdownSignal(signal, !initiatedByApplication, true); quiescingRpc(reason, k); diff --git a/src/main/java/com/rabbitmq/client/impl/MethodArgumentWriter.java b/src/main/java/com/rabbitmq/client/impl/MethodArgumentWriter.java index 139f9eb5ea..db2005d32f 100644 --- a/src/main/java/com/rabbitmq/client/impl/MethodArgumentWriter.java +++ b/src/main/java/com/rabbitmq/client/impl/MethodArgumentWriter.java @@ -38,7 +38,7 @@ public class MethodArgumentWriter private int bitMask; /** - * Constructs a MethodArgumentWriter targetting the given DataOutputStream. + * Constructs a MethodArgumentWriter targeting the given DataOutputStream. */ public MethodArgumentWriter(ValueWriter out) { diff --git a/src/main/java/com/rabbitmq/client/impl/recovery/AutorecoveringConnection.java b/src/main/java/com/rabbitmq/client/impl/recovery/AutorecoveringConnection.java index bfd2336a5b..379961971c 100644 --- a/src/main/java/com/rabbitmq/client/impl/recovery/AutorecoveringConnection.java +++ b/src/main/java/com/rabbitmq/client/impl/recovery/AutorecoveringConnection.java @@ -681,7 +681,7 @@ private void recoverTopology(final ExecutorService executor) { recoverEntitiesAsynchronously(executor, Utility.copy(recordedBindings)); recoverEntitiesAsynchronously(executor, Utility.copy(consumers).values()); } catch (final Exception cause) { - final String message = "Caught an exception while recovering toplogy: " + cause.getMessage(); + final String message = "Caught an exception while recovering topology: " + cause.getMessage(); final TopologyRecoveryException e = new TopologyRecoveryException(message, cause); getExceptionHandler().handleTopologyRecoveryException(delegate, null, e); } diff --git a/src/main/java/com/rabbitmq/utility/IntAllocator.java b/src/main/java/com/rabbitmq/utility/IntAllocator.java index b0f25075b7..6032a4dcc8 100644 --- a/src/main/java/com/rabbitmq/utility/IntAllocator.java +++ b/src/main/java/com/rabbitmq/utility/IntAllocator.java @@ -23,7 +23,7 @@ * {@link BitSet} representation of the free integers. *
* - *