Skip to content

Commit 5a785a4

Browse files
Fix more typos in docs & Javadocs
1 parent b868682 commit 5a785a4

21 files changed

+26
-26
lines changed

spring-kafka-test/src/main/java/org/springframework/kafka/test/utils/ContainerTestUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ private static Method getAssignedPartitionsMethod(Class<?> clazz) {
122122
method -> theMethod.set(method),
123123
method -> method.getName().equals("getAssignedPartitions") && method.getParameterTypes().length == 0);
124124
if (theMethod.get() == null) {
125-
throw new IllegalStateException(clazz + " has no getAssignedParitions() method");
125+
throw new IllegalStateException(clazz + " has no getAssignedPartitions() method");
126126
}
127127
return theMethod.get();
128128
}

spring-kafka/src/main/java/org/springframework/kafka/annotation/KafkaListenerAnnotationBeanPostProcessor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ public void setApplicationContext(ApplicationContext applicationContext) throws
265265

266266
/**
267267
* Making a {@link BeanFactory} available is optional; if not set,
268-
* {@link KafkaListenerConfigurer} beans won't get autodetected and an
268+
* {@link KafkaListenerConfigurer} beans won't get auto-detected and an
269269
* {@link #setEndpointRegistry endpoint registry} has to be explicitly configured.
270270
* @param beanFactory the {@link BeanFactory} to be used.
271271
*/

spring-kafka/src/main/java/org/springframework/kafka/annotation/RetryableTopic.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
/**
6767
*
6868
* The amount of time in milliseconds after which message retrying should give up and
69-
* send the message to the DLT. Expressions must resolv to a long or a String that can
69+
* send the message to the DLT. Expressions must resolve to a long or a String that can
7070
* be parsed as such.
7171
* @return the timeout value.
7272
*

spring-kafka/src/main/java/org/springframework/kafka/config/StreamsBuilderFactoryBean.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ public void setStateListener(KafkaStreams.StateListener stateListener) {
193193
}
194194

195195
/**
196-
* Set a {@link StreamsUncaughtExceptionHandler}. Supercedes
196+
* Set a {@link StreamsUncaughtExceptionHandler}. Supersedes
197197
* {@link #setUncaughtExceptionHandler(java.lang.Thread.UncaughtExceptionHandler)}.
198198
* @param streamsUncaughtExceptionHandler the handler.
199199
* @since 2.8

spring-kafka/src/main/java/org/springframework/kafka/core/KafkaTemplate.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ public class KafkaTemplate<K, V> implements KafkaOperations<K, V>, ApplicationCo
126126

127127
private String defaultTopic;
128128

129-
private ProducerListener<K, V> producerListener = new LoggingProducerListener<K, V>();
129+
private ProducerListener<K, V> producerListener = new LoggingProducerListener<>();
130130

131131
private String transactionIdPrefix;
132132

spring-kafka/src/main/java/org/springframework/kafka/event/ListenerContainerPartitionNoLongerIdleEvent.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,6 @@ public String toString() {
9595
return "ListenerContainerNoLongerIdleEvent [idleTime="
9696
+ ((float) this.idleTime / 1000) + "s, listenerId=" + this.listenerId // NOSONAR magic #
9797
+ ", container=" + getSource()
98-
+ ", topicPartitios=" + this.topicPartition + "]";
98+
+ ", topicPartitions=" + this.topicPartition + "]";
9999
}
100100
}

spring-kafka/src/main/java/org/springframework/kafka/listener/BatchAcknowledgingConsumerAwareMessageListener.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
public interface BatchAcknowledgingConsumerAwareMessageListener<K, V> extends BatchMessageListener<K, V> {
4242

4343
/**
44-
* Invoked with data from kafka. Containers should never call this since it they
44+
* Invoked with data from kafka. Containers should never call this since they
4545
* will detect that we are a consumer aware acknowledging listener.
4646
* @param data the data to be processed.
4747
*/

spring-kafka/src/main/java/org/springframework/kafka/listener/CommonLoggingErrorHandler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public void setAckAfterHandle(boolean ackAfterHandle) {
5252
public boolean handleOne(Exception thrownException, ConsumerRecord<?, ?> record, Consumer<?, ?> consumer,
5353
MessageListenerContainer container) {
5454

55-
LOGGER.error(thrownException, () -> "Error occured while processing: " + KafkaUtils.format(record));
55+
LOGGER.error(thrownException, () -> "Error occurred while processing: " + KafkaUtils.format(record));
5656
return true;
5757
}
5858

spring-kafka/src/main/java/org/springframework/kafka/listener/ContainerProperties.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ public enum EOSMode {
207207
* {@link org.springframework.kafka.listener.AcknowledgingMessageListener}. Acks will
208208
* be queued and offsets will be committed when all the records returned by the
209209
* previous poll have been processed by the listener.</li>
210-
* <li>MANUAL_IMMDEDIATE: Listener is responsible for acking - use a
210+
* <li>MANUAL_IMMEDIATE: Listener is responsible for acking - use a
211211
* {@link org.springframework.kafka.listener.AcknowledgingMessageListener}. The commit
212212
* will be performed immediately if the {@code Acknowledgment} is acknowledged on the
213213
* calling consumer thread. Otherwise, the acks will be queued and offsets will be
@@ -359,7 +359,7 @@ public void setMessageListener(Object messageListener) {
359359
* {@link org.springframework.kafka.listener.AcknowledgingMessageListener}. Acks will
360360
* be queued and offsets will be committed when all the records returned by the
361361
* previous poll have been processed by the listener.</li>
362-
* <li>MANUAL_IMMDEDIATE: Listener is responsible for acking - use a
362+
* <li>MANUAL_IMMEDIATE: Listener is responsible for acking - use a
363363
* {@link org.springframework.kafka.listener.AcknowledgingMessageListener}. The commit
364364
* will be performed immediately if the {@code Acknowledgment} is acknowledged on the
365365
* calling consumer thread. Otherwise, the acks will be queued and offsets will be

spring-kafka/src/main/java/org/springframework/kafka/listener/DeadLetterPublishingRecoverer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1452,7 +1452,7 @@ public interface ExceptionHeadersCreator {
14521452
* @param kafkaHeaders the {@link Headers} to add the header(s) to.
14531453
* @param exception The exception.
14541454
* @param isKey whether the exception is for a key or value.
1455-
* @param headerNames the heaader names to use.
1455+
* @param headerNames the header names to use.
14561456
*/
14571457
void create(Headers kafkaHeaders, Exception exception, boolean isKey, HeaderNames headerNames);
14581458

0 commit comments

Comments
 (0)