Skip to content

Commit 9dccd38

Browse files
neetkeeartembilan
authored andcommitted
Fix some typos.
1 parent b5f2272 commit 9dccd38

File tree

7 files changed

+17
-17
lines changed

7 files changed

+17
-17
lines changed

spring-kafka-test/src/main/java/org/springframework/kafka/test/hamcrest/KafkaMatchers.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2016-2018 the original author or authors.
2+
* Copyright 2016-2019 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.
@@ -66,7 +66,7 @@ public static <V> Matcher<ConsumerRecord<?, V>> hasValue(V value) {
6666
}
6767

6868
/**
69-
* Matcher testing the timestamp of a {@link ConsumerRecord} asssuming the topic has been set with
69+
* Matcher testing the timestamp of a {@link ConsumerRecord} assuming the topic has been set with
7070
* {@link org.apache.kafka.common.record.TimestampType#CREATE_TIME CreateTime}.
7171
* @param ts timestamp of the consumer record.
7272
* @return a Matcher that matches the timestamp in a consumer record.

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2016-2018 the original author or authors.
2+
* Copyright 2016-2019 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.
@@ -180,7 +180,7 @@ private void enableIdempotentBehaviour() {
180180

181181
/**
182182
* Set to false to revert to the previous behavior of a simple incrementing
183-
* trasactional.id suffix for each producer instead of maintaining a producer
183+
* transactional.id suffix for each producer instead of maintaining a producer
184184
* for each group/topic/partition.
185185
* @param producerPerConsumerPartition false to revert.
186186
* @since 1.3.7

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ protected void doStart() {
277277
}
278278
Assert.state(messageListener instanceof GenericMessageListener, "Listener must be a GenericListener");
279279
GenericMessageListener<?> listener = (GenericMessageListener<?>) messageListener;
280-
ListenerType listenerType = deteremineListenerType(listener);
280+
ListenerType listenerType = determineListenerType(listener);
281281
this.listenerConsumer = new ListenerConsumer(listener, listenerType);
282282
setRunning(true);
283283
this.listenerConsumerFuture = containerProperties
@@ -298,7 +298,7 @@ private void checkAckMode(ContainerProperties containerProperties) {
298298
}
299299
}
300300

301-
private ListenerType deteremineListenerType(GenericMessageListener<?> listener) {
301+
private ListenerType determineListenerType(GenericMessageListener<?> listener) {
302302
ListenerType listenerType = ListenerUtils.determineListenerType(listener);
303303
if (listener instanceof DelegatingMessageListener) {
304304
Object delegating = listener;
@@ -693,7 +693,7 @@ public void run() {
693693
}
694694
this.count = 0;
695695
this.last = System.currentTimeMillis();
696-
initAsignedPartitions();
696+
initAssignedPartitions();
697697
while (isRunning()) {
698698
try {
699699
pollAndInvoke();
@@ -722,7 +722,7 @@ public void run() {
722722
wrapUp();
723723
}
724724

725-
private void initAsignedPartitions() {
725+
private void initAssignedPartitions() {
726726
if (isRunning() && this.definedPartitions != null) {
727727
try {
728728
initPartitionsIfNeeded();

spring-kafka/src/main/java/org/springframework/kafka/listener/adapter/FilteringBatchMessageListenerAdapter.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2016-2017 the original author or authors.
2+
* Copyright 2016-2019 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.
@@ -87,7 +87,7 @@ public void onMessage(List<ConsumerRecord<K, V>> consumerRecords, Acknowledgment
8787
*/
8888
if (consumerRecords.size() > 0 || consumerAware
8989
|| (!this.ackDiscarded && this.delegateType.equals(ListenerType.ACKNOWLEDGING))) {
90-
invokeDelagate(consumerRecords, acknowledgment, consumer);
90+
invokeDelegate(consumerRecords, acknowledgment, consumer);
9191
}
9292
else {
9393
if (this.ackDiscarded && acknowledgment != null) {
@@ -96,7 +96,7 @@ public void onMessage(List<ConsumerRecord<K, V>> consumerRecords, Acknowledgment
9696
}
9797
}
9898

99-
private void invokeDelagate(List<ConsumerRecord<K, V>> consumerRecords, Acknowledgment acknowledgment,
99+
private void invokeDelegate(List<ConsumerRecord<K, V>> consumerRecords, Acknowledgment acknowledgment,
100100
Consumer<?, ?> consumer) {
101101
switch (this.delegateType) {
102102
case ACKNOWLEDGING_CONSUMER_AWARE:

spring-kafka/src/main/java/org/springframework/kafka/support/serializer/ErrorHandlingDeserializer2.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public class ErrorHandlingDeserializer2<T> implements Deserializer<T> {
5454
public static final String KEY_DESERIALIZER_EXCEPTION_HEADER = KEY_DESERIALIZER_EXCEPTION_HEADER_PREFIX + "Key";
5555

5656
/**
57-
* Heaader name for deserialization exceptions.
57+
* Header name for deserialization exceptions.
5858
*/
5959
public static final String VALUE_DESERIALIZER_EXCEPTION_HEADER = KEY_DESERIALIZER_EXCEPTION_HEADER_PREFIX + "Value";
6060

spring-kafka/src/test/java/org/springframework/kafka/core/KafkaTemplateTransactionTests.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2017-2018 the original author or authors.
2+
* Copyright 2017-2019 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.
@@ -377,7 +377,7 @@ public void testAbort() {
377377
}
378378

379379
@Test
380-
public void testExcecuteInTransactionNewInnerTx() {
380+
public void testExecuteInTransactionNewInnerTx() {
381381
@SuppressWarnings("unchecked")
382382
Producer<Object, Object> producer1 = mock(Producer.class);
383383
@SuppressWarnings("unchecked")
@@ -407,7 +407,7 @@ Producer<Object, Object> createTransactionalProducerForPartition() {
407407
KafkaTransactionManager<Object, Object> tm = new KafkaTransactionManager<>(pf);
408408

409409
try {
410-
TransactionSupport.setTransactionIdSuffix("testExcecuteInTransactionNewInnerTx");
410+
TransactionSupport.setTransactionIdSuffix("testExecuteInTransactionNewInnerTx");
411411
new TransactionTemplate(tm).execute(s -> {
412412
return template.executeInTransaction(t -> {
413413
template.sendDefault("foo", "bar");

spring-kafka/src/test/java/org/springframework/kafka/listener/RemainingRecordsErrorHandlerTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2019 the original author or authors.
2+
* Copyright 2019-2019 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.
@@ -81,7 +81,7 @@ public class RemainingRecordsErrorHandlerTests {
8181
*/
8282
@SuppressWarnings("unchecked")
8383
@Test
84-
public void remaingRecordsReceived() throws Exception {
84+
public void remainingRecordsReceived() throws Exception {
8585
assertThat(this.config.deliveryLatch.await(10, TimeUnit.SECONDS)).isTrue();
8686
assertThat(this.config.commitLatch.await(10, TimeUnit.SECONDS)).isTrue();
8787
assertThat(this.config.pollLatch.await(10, TimeUnit.SECONDS)).isTrue();

0 commit comments

Comments
 (0)