Skip to content

Commit 0c72649

Browse files
Fix typos in Javadoc and variable names
1 parent ccca9d9 commit 0c72649

File tree

7 files changed

+10
-10
lines changed

7 files changed

+10
-10
lines changed

spring-rabbit-junit/src/main/java/org/springframework/amqp/rabbit/junit/LongRunning.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2017-2019 the original author or authors.
2+
* Copyright 2017-2024 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -40,7 +40,7 @@
4040
public @interface LongRunning {
4141

4242
/**
43-
* The name of the variable/property used to determine whether long runnning tests
43+
* The name of the variable/property used to determine whether long running tests
4444
* should run.
4545
* @return the name of the variable/property.
4646
*/

spring-rabbit/src/main/java/org/springframework/amqp/rabbit/config/AbstractRabbitListenerContainerFactory.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2014-2023 the original author or authors.
2+
* Copyright 2014-2024 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -344,7 +344,7 @@ public void setObservationConvention(RabbitListenerObservationConvention observa
344344
/**
345345
* Set to true to stop the container after the current message(s) are processed and
346346
* requeue any prefetched. Useful when using exclusive or single-active consumers.
347-
* @param forceStop true to stop when current messsage(s) are processed.
347+
* @param forceStop true to stop when current message(s) are processed.
348348
* @since 2.4.15
349349
*/
350350
public void setForceStop(boolean forceStop) {

spring-rabbit/src/main/java/org/springframework/amqp/rabbit/config/NamespaceUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ public static boolean addConstructorArgValueIfAttributeDefined(BeanDefinitionBui
126126
* @param builder the bean definition builder to be configured
127127
* @param element the XML element where the attribute should be defined
128128
* @param attributeName the name of the attribute whose value will be used as a constructor argument
129-
* @param defaultValue the default value to use if the attirbute is not set
129+
* @param defaultValue the default value to use if the attribute is not set
130130
*/
131131
public static void addConstructorArgBooleanValueIfAttributeDefined(BeanDefinitionBuilder builder, Element element,
132132
String attributeName, boolean defaultValue) {

spring-rabbit/src/main/java/org/springframework/amqp/rabbit/config/StatefulRetryOperationsInterceptorFactoryBean.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ public class StatefulRetryOperationsInterceptorFactoryBean extends AbstractRetry
6363

6464
private NewMessageIdentifier newMessageIdentifier;
6565

66-
public void setMessageKeyGenerator(MessageKeyGenerator messageKeyGeneretor) {
67-
this.messageKeyGenerator = messageKeyGeneretor;
66+
public void setMessageKeyGenerator(MessageKeyGenerator messageKeyGenerator) {
67+
this.messageKeyGenerator = messageKeyGenerator;
6868
}
6969

7070
public void setNewMessageIdentifier(NewMessageIdentifier newMessageIdentifier) {

spring-rabbit/src/main/java/org/springframework/amqp/rabbit/connection/CompositeConnectionListener.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
import com.rabbitmq.client.ShutdownSignalException;
2424

2525
/**
26-
* A composite listener that invokes its delegages in turn.
26+
* A composite listener that invokes its delegates in turn.
2727
*
2828
* @author Dave Syer
2929
* @author Gary Russell

spring-rabbit/src/main/java/org/springframework/amqp/rabbit/connection/RabbitConnectionFactoryBean.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
* optionally enabling SSL, with or without certificate validation. When
6464
* {@link #setSslPropertiesLocation(Resource) sslPropertiesLocation} is not null, the
6565
* default implementation loads a {@code PKCS12} keystore and a {@code JKS} truststore
66-
* using the supplied properties and intializes key and trust manager factories, using
66+
* using the supplied properties and initializes key and trust manager factories, using
6767
* algorithm {@code SunX509} by default. These are then used to initialize an
6868
* {@link SSLContext} using the {@link #setSslAlgorithm(String) sslAlgorithm} (default
6969
* TLSv1.2, falling back to TLSv1.1, if 1.2 is not available).

spring-rabbit/src/main/java/org/springframework/amqp/rabbit/listener/adapter/MessageListenerAdapter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@
8989
*
9090
* This next example illustrates a <code>Message</code> delegate that just consumes the <code>String</code> contents of
9191
* {@link Message Messages}. Notice also how the name of the <code>Message</code> handling method is different from the
92-
* {@link #ORIGINAL_DEFAULT_LISTENER_METHOD original} (this will have to be configured in the attandant bean
92+
* {@link #ORIGINAL_DEFAULT_LISTENER_METHOD original} (this will have to be configured in the attendant bean
9393
* definition). Again, no <code>Message</code> will be sent back as the method returns <code>void</code>.
9494
*
9595
* <pre class="code">

0 commit comments

Comments
 (0)