Skip to content

Commit 83bdd20

Browse files
Fix various typos in variables and test names (#4128)
Signed-off-by: Tran Ngoc Nhan <[email protected]>
1 parent ec7aeb4 commit 83bdd20

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -798,7 +798,7 @@ public Duration getConsumerStartTimeout() {
798798
* @param consumerStartTimeout the consumer start timeout.
799799
*/
800800
public void setConsumerStartTimeout(Duration consumerStartTimeout) {
801-
Assert.notNull(consumerStartTimeout, "'consumerStartTimout' cannot be null");
801+
Assert.notNull(consumerStartTimeout, "'consumerStartTimeout' cannot be null");
802802
this.consumerStartTimeout = consumerStartTimeout;
803803
}
804804

spring-kafka/src/main/java/org/springframework/kafka/retrytopic/DefaultDestinationTopicResolver.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ public DestinationTopic resolveDestinationTopic(String mainListenerId, String to
104104
? handleDltProcessingFailure(destinationTopicHolder, e)
105105
: destinationTopicHolder.getSourceDestination().shouldRetryOn(attempt, maybeUnwrapException(e))
106106
&& isNotFatalException(e)
107-
&& !isPastTimout(originalTimestamp, destinationTopicHolder)
107+
&& !isPastTimeout(originalTimestamp, destinationTopicHolder)
108108
? resolveRetryDestination(mainListenerId, destinationTopicHolder, e)
109109
: getDltOrNoOpsDestination(mainListenerId, topic, e);
110110
}
@@ -123,7 +123,7 @@ private Throwable maybeUnwrapException(@Nullable Throwable e) {
123123
.orElse(e);
124124
}
125125

126-
private boolean isPastTimout(long originalTimestamp, DestinationTopicHolder destinationTopicHolder) {
126+
private boolean isPastTimeout(long originalTimestamp, DestinationTopicHolder destinationTopicHolder) {
127127
long timeout = destinationTopicHolder.getNextDestination().getDestinationTimeout();
128128
return timeout != RetryTopicConstants.NOT_SET &&
129129
Instant.now(this.clock).toEpochMilli() > originalTimestamp + timeout;

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -724,7 +724,7 @@ void testInOrderAck(AckMode ackMode) throws Exception {
724724
assertThat(illegal.get()).isNotNull();
725725
}
726726

727-
private static Stream<Arguments> testInOrderAckPauseUntilAckedParamters() {
727+
private static Stream<Arguments> testInOrderAckPauseUntilAckedParameters() {
728728
return Stream.of(
729729
Arguments.of(AckMode.MANUAL, false),
730730
Arguments.of(AckMode.MANUAL, true),
@@ -733,7 +733,7 @@ private static Stream<Arguments> testInOrderAckPauseUntilAckedParamters() {
733733
}
734734

735735
@ParameterizedTest(name = "{index} AckMode.{0} batch:{1}")
736-
@MethodSource("testInOrderAckPauseUntilAckedParamters")
736+
@MethodSource("testInOrderAckPauseUntilAckedParameters")
737737
@SuppressWarnings("unchecked")
738738
void testInOrderAckPauseUntilAcked(AckMode ackMode, boolean batch) throws Exception {
739739
ConsumerFactory<Integer, String> cf = mock(ConsumerFactory.class);
@@ -2491,7 +2491,7 @@ public void onPartitionsAssigned(Collection<TopicPartition> partitions) {
24912491
}
24922492

24932493
@Test
2494-
void enforceRabalanceOnTheConsumer() throws Exception {
2494+
void enforceRebalanceOnTheConsumer() throws Exception {
24952495
ConsumerFactory<Integer, String> cf = mock();
24962496
ContainerProperties containerProps = new ContainerProperties("enforce-rebalance-test-topic");
24972497
containerProps.setGroupId("grp");

spring-kafka/src/test/java/org/springframework/kafka/retrytopic/DefaultDestinationTopicResolverTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ void shouldCloseContainerOnContextRefresh() {
286286
}
287287

288288
@Test
289-
void shouldNotMarkContainerRefeshedOnOtherContextRefresh() {
289+
void shouldNotMarkContainerRefreshedOnOtherContextRefresh() {
290290
defaultDestinationTopicContainer
291291
.onApplicationEvent(new ContextRefreshedEvent(otherApplicationContext));
292292
assertThat(defaultDestinationTopicContainer.isContextRefreshed()).isFalse();

spring-kafka/src/test/java/org/springframework/kafka/retrytopic/ListenerContainerFactoryResolverTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ void shouldFailIfNoneResolvedForRetryEndpoint() {
265265
}
266266

267267
@Test
268-
void shouldGetFromCacheForMainEndpont() {
268+
void shouldGetFromCacheForMainEndpoint() {
269269

270270
// setup
271271
given(beanFactory.getBean(factoryName,

0 commit comments

Comments
 (0)