Skip to content

Commit 6b836c5

Browse files
Merge pull request #443 from jsoref/spelling
Spelling
2 parents 787113d + cce132b commit 6b836c5

12 files changed

+19
-19
lines changed

RUNNING_TESTS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ can control the running node.
2121

2222
`./mvnw verify` will start those nodes with the appropriate configuration.
2323

24-
To easily fullfil all those requirements, you should use `make deps` to
24+
To easily fulfill all those requirements, you should use `make deps` to
2525
fetch the dependencies in the `deps` directory.
2626

2727
You then run Maven with the `deps.dir` property set like this:

src/main/java/com/rabbitmq/client/ConnectionFactory.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ public void setVirtualHost(String virtualHost) {
307307
/**
308308
* Convenience method for setting the fields in an AMQP URI: host,
309309
* port, username, password and virtual host. If any part of the
310-
* URI is ommited, the ConnectionFactory's corresponding variable
310+
* URI is omitted, the ConnectionFactory's corresponding variable
311311
* is left unchanged.
312312
* @param uri is the AMQP URI containing the data
313313
*/
@@ -366,7 +366,7 @@ public void setUri(URI uri)
366366
/**
367367
* Convenience method for setting the fields in an AMQP URI: host,
368368
* port, username, password and virtual host. If any part of the
369-
* URI is ommited, the ConnectionFactory's corresponding variable
369+
* URI is omitted, the ConnectionFactory's corresponding variable
370370
* is left unchanged. Note that not all valid AMQP URIs are
371371
* accepted; in particular, the hostname must be given if the
372372
* port, username or password are given, and escapes in the
@@ -674,7 +674,7 @@ public boolean isSSL(){
674674
public void useSslProtocol()
675675
throws NoSuchAlgorithmException, KeyManagementException
676676
{
677-
useSslProtocol(computeDefaultTlsProcotol(SSLContext.getDefault().getSupportedSSLParameters().getProtocols()));
677+
useSslProtocol(computeDefaultTlsProtocol(SSLContext.getDefault().getSupportedSSLParameters().getProtocols()));
678678
}
679679

680680
/**
@@ -777,7 +777,7 @@ protected void enableHostnameVerificationForBlockingIo() {
777777
}
778778
}
779779

780-
public static String computeDefaultTlsProcotol(String[] supportedProtocols) {
780+
public static String computeDefaultTlsProtocol(String[] supportedProtocols) {
781781
if(supportedProtocols != null) {
782782
for (String supportedProtocol : supportedProtocols) {
783783
if(PREFERRED_TLS_PROTOCOL.equalsIgnoreCase(supportedProtocol)) {

src/main/java/com/rabbitmq/client/impl/AMQConnection.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -851,7 +851,7 @@ public void handleConnectionClose(Command closeCommand) {
851851
SocketCloseWait scw = new SocketCloseWait(sse);
852852

853853
// if shutdown executor is configured, use it. Otherwise
854-
// execut socket close monitor the old fashioned way.
854+
// execute socket close monitor the old fashioned way.
855855
// see rabbitmq/rabbitmq-java-client#91
856856
if(shutdownExecutor != null) {
857857
shutdownExecutor.execute(scw);

src/main/java/com/rabbitmq/client/impl/ChannelN.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -602,7 +602,7 @@ public AMQCommand transformReply(AMQCommand command) {
602602
boolean notify = false;
603603
try {
604604
// Synchronize the block below to avoid race conditions in case
605-
// connnection wants to send Connection-CloseOK
605+
// connection wants to send Connection-CloseOK
606606
synchronized (_channelMutex) {
607607
startProcessShutdownSignal(signal, !initiatedByApplication, true);
608608
quiescingRpc(reason, k);

src/main/java/com/rabbitmq/client/impl/MethodArgumentWriter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public class MethodArgumentWriter
3838
private int bitMask;
3939

4040
/**
41-
* Constructs a MethodArgumentWriter targetting the given DataOutputStream.
41+
* Constructs a MethodArgumentWriter targeting the given DataOutputStream.
4242
*/
4343
public MethodArgumentWriter(ValueWriter out)
4444
{

src/main/java/com/rabbitmq/client/impl/recovery/AutorecoveringConnection.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -681,7 +681,7 @@ private void recoverTopology(final ExecutorService executor) {
681681
recoverEntitiesAsynchronously(executor, Utility.copy(recordedBindings));
682682
recoverEntitiesAsynchronously(executor, Utility.copy(consumers).values());
683683
} catch (final Exception cause) {
684-
final String message = "Caught an exception while recovering toplogy: " + cause.getMessage();
684+
final String message = "Caught an exception while recovering topology: " + cause.getMessage();
685685
final TopologyRecoveryException e = new TopologyRecoveryException(message, cause);
686686
getExceptionHandler().handleTopologyRecoveryException(delegate, null, e);
687687
}

src/main/java/com/rabbitmq/utility/IntAllocator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
* {@link BitSet} representation of the free integers.
2424
* </p>
2525
*
26-
* <h2>Concurrecy Semantics:</h2>
26+
* <h2>Concurrency Semantics:</h2>
2727
* This class is <b><i>not</i></b> thread safe.
2828
*
2929
* <h2>Implementation notes:</h2>

src/test/java/com/rabbitmq/client/test/SslContextFactoryTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ private SslContextFactory sslContextFactory() throws Exception {
129129
}
130130

131131
private String tlsProtocol() throws NoSuchAlgorithmException {
132-
return ConnectionFactory.computeDefaultTlsProcotol(SSLContext.getDefault().getSupportedSSLParameters().getProtocols());
132+
return ConnectionFactory.computeDefaultTlsProtocol(SSLContext.getDefault().getSupportedSSLParameters().getProtocols());
133133
}
134134

135135
private static class TrustNothingTrustManager implements X509TrustManager {

src/test/java/com/rabbitmq/client/test/functional/AlternateExchange.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ public void handleReturn(int replyCode,
9696
*
9797
* @param name the name of the exchange to be created, and queue
9898
* to be bound
99-
* @param ae the name of the alternate-exchage
99+
* @param ae the name of the alternate-exchange
100100
*/
101101
protected void setupRouting(String name, String ae) throws IOException {
102102
Map<String, Object> args = new HashMap<String, Object>();

src/test/java/com/rabbitmq/client/test/functional/BindingLifecycle.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public class BindingLifecycle extends BindingLifecycleBase {
4949
Binding binding = setupExchangeBindings(false);
5050
channel.basicPublish(binding.x, binding.k, null, payload);
5151

52-
// Purge the queue, and test that we don't recieve a message
52+
// Purge the queue, and test that we don't receive a message
5353
channel.queuePurge(binding.q);
5454

5555
GetResponse response = channel.basicGet(binding.q, true);
@@ -153,7 +153,7 @@ public class BindingLifecycle extends BindingLifecycleBase {
153153
* The unsubscribe should cause the queue to auto_delete, which in
154154
* turn should cause the exchange to auto_delete.
155155
*
156-
* Then re-declare the queue again and try to rebind it to the same exhange.
156+
* Then re-declare the queue again and try to rebind it to the same exchange.
157157
*
158158
* Because the exchange has been auto-deleted, the bind operation
159159
* should fail.

src/test/java/com/rabbitmq/client/test/server/DurableBindingLifecycle.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,9 @@ private void restartPrimary() throws IOException, TimeoutException {
8585

8686
/**
8787
* This tests whether the bindings attached to a durable exchange
88-
* are correctly blown away when the exhange is nuked.
88+
* are correctly blown away when the exchange is nuked.
8989
*
90-
* This complements a unit test for testing non-durable exhanges.
90+
* This complements a unit test for testing non-durable exchanges.
9191
* In that case, an exchange is deleted and you expect any
9292
* bindings hanging to it to be deleted as well. To verify this,
9393
* the exchange is deleted and then recreated.

src/test/java/com/rabbitmq/client/test/ssl/ConnectionFactoryDefaultTlsVersion.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,19 +24,19 @@ public class ConnectionFactoryDefaultTlsVersion {
2424

2525
@Test public void defaultTlsVersionJdk16ShouldTakeFallback() {
2626
String [] supportedProtocols = {"SSLv2Hello", "SSLv3", "TLSv1"};
27-
String tlsProtocol = ConnectionFactory.computeDefaultTlsProcotol(supportedProtocols);
27+
String tlsProtocol = ConnectionFactory.computeDefaultTlsProtocol(supportedProtocols);
2828
Assert.assertEquals("TLSv1",tlsProtocol);
2929
}
3030

3131
@Test public void defaultTlsVersionJdk17ShouldTakePrefered() {
3232
String [] supportedProtocols = {"SSLv2Hello", "SSLv3", "TLSv1", "TLSv1.1", "TLSv1.2"};
33-
String tlsProtocol = ConnectionFactory.computeDefaultTlsProcotol(supportedProtocols);
33+
String tlsProtocol = ConnectionFactory.computeDefaultTlsProtocol(supportedProtocols);
3434
Assert.assertEquals("TLSv1.2",tlsProtocol);
3535
}
3636

3737
@Test public void defaultTlsVersionJdk18ShouldTakePrefered() {
3838
String [] supportedProtocols = {"SSLv2Hello", "SSLv3", "TLSv1", "TLSv1.1", "TLSv1.2"};
39-
String tlsProtocol = ConnectionFactory.computeDefaultTlsProcotol(supportedProtocols);
39+
String tlsProtocol = ConnectionFactory.computeDefaultTlsProtocol(supportedProtocols);
4040
Assert.assertEquals("TLSv1.2",tlsProtocol);
4141
}
4242

0 commit comments

Comments
 (0)