Skip to content

Commit c8e171c

Browse files
committed
GH-3968: public IntObjSupp.setConversionService
Fixes #3968 The `IntegrationObjectSupport.setConversionService()` is protected by accident
1 parent ca7736d commit c8e171c

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

spring-integration-core/src/main/java/org/springframework/integration/context/IntegrationObjectSupport.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2022 the original author or authors.
2+
* Copyright 2002-2023 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.
@@ -267,7 +267,7 @@ public ConversionService getConversionService() {
267267
return this.conversionService;
268268
}
269269

270-
protected void setConversionService(ConversionService conversionService) {
270+
public void setConversionService(ConversionService conversionService) {
271271
this.conversionService = conversionService;
272272
}
273273

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2022 the original author or authors.
2+
* Copyright 2002-2023 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.
@@ -26,7 +26,7 @@
2626
import java.util.concurrent.TimeUnit;
2727
import java.util.concurrent.atomic.AtomicInteger;
2828

29-
import org.junit.Test;
29+
import org.junit.jupiter.api.Test;
3030

3131
import org.springframework.beans.factory.BeanFactory;
3232
import org.springframework.core.convert.ConversionService;
@@ -40,11 +40,12 @@
4040

4141
/**
4242
* @author Gary Russell
43+
* @author Artem Bilan
4344
*
4445
* @since 3.0
4546
*
4647
*/
47-
public class RouterConcurrencyTest {
48+
public class RouterConcurrencyTests {
4849

4950
@Test
5051
public void test() throws Exception {
@@ -57,7 +58,7 @@ protected Collection<MessageChannel> determineTargetChannels(Message<?> message)
5758
}
5859

5960
@Override
60-
protected void setConversionService(ConversionService conversionService) {
61+
public void setConversionService(ConversionService conversionService) {
6162
try {
6263
if (count.incrementAndGet() > 1) {
6364
Thread.sleep(20);

0 commit comments

Comments
 (0)