Skip to content

Commit e1c2549

Browse files
committed
Merge branch 'main' of github.com:spring-projects/spring-integration into jspecify-kafka
2 parents ea302e3 + a41c868 commit e1c2549

File tree

31 files changed

+97
-993
lines changed

31 files changed

+97
-993
lines changed

.github/dependabot.yml

Lines changed: 3 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -137,57 +137,11 @@ updates:
137137
- com.thoughtworks.xstream:xstream
138138
- org.springframework.security*
139139

140-
- package-ecosystem: gradle
141-
target-branch: 6.3.x
142-
directory: /
143-
schedule:
144-
interval: weekly
145-
day: sunday
146-
ignore:
147-
- dependency-name: '*'
148-
update-types:
149-
- version-update:semver-major
150-
- version-update:semver-minor
151-
open-pull-requests-limit: 10
152-
labels:
153-
- 'type: dependency-upgrade'
154-
groups:
155-
development-dependencies:
156-
update-types:
157-
- patch
158-
patterns:
159-
- org.gradle.*
160-
- com.github.spotbugs
161-
- io.spring.*
162-
- org.ajoberstar.grgit
163-
- org.antora
164-
- com.google.protobuf
165-
- io.micrometer:micrometer-docs-generator
166-
- com.willowtreeapps.assertk:assertk-jvm
167-
- org.jetbrains.dokka
168-
- org.apache.activemq*
169-
- org.aspectj*
170-
- org.awaitility:awaitility
171-
- org.apache.commons:commons-dbcp2
172-
- org.apache.derby
173-
- com.icegreen:greenmail
174-
- org.hibernate.orm*
175-
- org.testcontainers*
176-
- org.hsqldb:hsqldb
177-
- com.h2database:h2
178-
- org.postgresql:postgresql
179-
- mysql:mysql-connector-java
180-
- com.oracle.database.jdbc:ojdbc11
181-
- org.apache.tomcat.embed:tomcat-embed-websocket
182-
- org.xmlunit:xmlunit-assertj3
183-
- com.thoughtworks.xstream:xstream
184-
- org.springframework.security*
185-
186140
- package-ecosystem: github-actions
187141
directory: /
188142
schedule:
189143
interval: weekly
190-
day: saturday
144+
day: sunday
191145
labels:
192146
- 'type: task'
193147
groups:
@@ -200,7 +154,7 @@ updates:
200154
directory: /
201155
schedule:
202156
interval: weekly
203-
day: saturday
157+
day: sunday
204158
labels:
205159
- 'type: task'
206160
groups:
@@ -213,23 +167,10 @@ updates:
213167
directory: /
214168
schedule:
215169
interval: weekly
216-
day: saturday
170+
day: sunday
217171
labels:
218172
- 'type: task'
219173
groups:
220174
development-dependencies:
221175
patterns:
222176
- '*'
223-
224-
- package-ecosystem: github-actions
225-
target-branch: 6.3.x
226-
directory: /
227-
schedule:
228-
interval: weekly
229-
day: saturday
230-
labels:
231-
- 'type: task'
232-
groups:
233-
development-dependencies:
234-
patterns:
235-
- '*'

.github/workflows/release.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,17 @@ jobs:
1212
contents: write
1313
issues: write
1414

15-
uses: spring-io/spring-github-workflows/.github/workflows/spring-artifactory-gradle-release.yml@v5
15+
uses: spring-io/spring-github-workflows/.github/workflows/spring-artifactory-gradle-release.yml@main
16+
with:
17+
deployMilestoneToCentral: true
1618
secrets:
1719
GH_ACTIONS_REPO_TOKEN: ${{ secrets.GH_ACTIONS_REPO_TOKEN }}
1820
DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
1921
JF_ARTIFACTORY_SPRING: ${{ secrets.JF_ARTIFACTORY_SPRING }}
2022
ARTIFACTORY_USERNAME: ${{ secrets.ARTIFACTORY_USERNAME }}
2123
ARTIFACTORY_PASSWORD: ${{ secrets.ARTIFACTORY_PASSWORD }}
22-
OSSRH_S01_TOKEN_USERNAME: ${{ secrets.OSSRH_S01_TOKEN_USERNAME }}
23-
OSSRH_S01_TOKEN_PASSWORD: ${{ secrets.OSSRH_S01_TOKEN_PASSWORD }}
24-
OSSRH_STAGING_PROFILE_NAME: ${{ secrets.OSSRH_STAGING_PROFILE_NAME }}
24+
CENTRAL_TOKEN_USERNAME: ${{ secrets.CENTRAL_TOKEN_USERNAME }}
25+
CENTRAL_TOKEN_PASSWORD: ${{ secrets.CENTRAL_TOKEN_PASSWORD }}
2526
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
2627
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
2728
SPRING_RELEASE_CHAT_WEBHOOK_URL: ${{ secrets.SPRING_RELEASE_GCHAT_WEBHOOK_URL }}

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,9 +117,9 @@ ext {
117117
springSecurityVersion = '7.0.0-SNAPSHOT'
118118
springVersion = '7.0.0-SNAPSHOT'
119119
springWsVersion = '5.0.0-SNAPSHOT'
120-
testcontainersVersion = '1.21.1'
120+
testcontainersVersion = '1.21.2'
121121
tomcatVersion = '11.0.8'
122-
xmlUnitVersion = '2.10.2'
122+
xmlUnitVersion = '2.10.3'
123123
xstreamVersion = '1.4.21'
124124
ztZipVersion = '1.17'
125125

spring-integration-core/src/main/java/org/springframework/integration/aggregator/AbstractCorrelatingMessageHandler.java

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -968,18 +968,6 @@ private static boolean compareSequences(Message<?> msg1, Message<?> msg2) {
968968

969969
}
970970

971-
/**
972-
* Probably the method is {@code protected} by mistake.
973-
* @param elements the group processor result.
974-
* @deprecated without replacement - out of use from now on.
975-
*/
976-
@Deprecated(since = "6.5", forRemoval = true)
977-
protected void verifyResultCollectionConsistsOfMessages(Collection<?> elements) {
978-
Class<?> commonElementType = CollectionUtils.findCommonElementType(elements);
979-
Assert.isAssignable(Message.class, commonElementType, () ->
980-
"The expected collection of Messages contains non-Message element: " + commonElementType);
981-
}
982-
983971
private static boolean isResultCollectionOfMessages(Object result) {
984972
if (result instanceof Collection<?> resultCollection) {
985973
Class<?> commonElementType = CollectionUtils.findCommonElementType(resultCollection);

spring-integration-core/src/main/java/org/springframework/integration/dsl/BaseIntegrationFlowDefinition.java

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -513,34 +513,6 @@ public B wireTap(WireTapSpec wireTapSpec) {
513513
return _this();
514514
}
515515

516-
/**
517-
* Populate the {@code Control Bus} EI Pattern specific {@link MessageHandler} implementation
518-
* at the current {@link IntegrationFlow} chain position.
519-
* @return the current {@link BaseIntegrationFlowDefinition}.
520-
* @since 6.4
521-
* @deprecated since 6.5 in favor of {@link #controlBus()}
522-
* @see ControlBusMessageProcessor
523-
*/
524-
@Deprecated(since = "6.5", forRemoval = true)
525-
public B controlBusOnRegistry() {
526-
return controlBus();
527-
}
528-
529-
/**
530-
* Populate the {@code Control Bus} EI Pattern specific {@link MessageHandler} implementation
531-
* at the current {@link IntegrationFlow} chain position.
532-
* @param endpointConfigurer the {@link Consumer} to accept integration endpoint options.
533-
* @return the current {@link BaseIntegrationFlowDefinition}.
534-
* @since 6.4
535-
* @deprecated since 6.5 in favor of {@link #controlBus(Consumer)}
536-
* @see GenericEndpointSpec
537-
* @see ControlBusMessageProcessor
538-
*/
539-
@Deprecated(since = "6.5", forRemoval = true)
540-
public B controlBusOnRegistry(@Nullable Consumer<GenericEndpointSpec<ServiceActivatingHandler>> endpointConfigurer) {
541-
return controlBus(endpointConfigurer);
542-
}
543-
544516
/**
545517
* Populate the {@code Control Bus} EI Pattern specific {@link MessageHandler} implementation
546518
* at the current {@link IntegrationFlow} chain position.

spring-integration-core/src/main/java/org/springframework/integration/support/locks/DefaultLockRegistry.java

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
*
3232
* @author Oleg Zhurakousky
3333
* @author Gary Russell
34+
*
3435
* @since 2.1.1
3536
*
3637
*/
@@ -41,15 +42,15 @@ public final class DefaultLockRegistry implements LockRegistry<Lock> {
4142
private final int mask;
4243

4344
/**
44-
* Constructs a DefaultLockRegistry with the default
45+
* Construct a DefaultLockRegistry with the default
4546
* mask 0xFF with 256 locks.
4647
*/
4748
public DefaultLockRegistry() {
4849
this(0xFF); // NOSONAR magic number
4950
}
5051

5152
/**
52-
* Constructs a DefaultLockRegistry with the supplied
53+
* Construct a DefaultLockRegistry with the supplied
5354
* mask - the mask must have a value Math.pow(2, n) - 1 where n
5455
* is 1 to 31, creating a hash of Math.pow(2, n) locks.
5556
* <p> Examples:
@@ -61,7 +62,8 @@ public DefaultLockRegistry() {
6162
*/
6263
public DefaultLockRegistry(int mask) {
6364
String bits = Integer.toBinaryString(mask);
64-
Assert.isTrue(bits.length() < 32 && (mask == 0 || bits.lastIndexOf('0') < bits.indexOf('1')), "Mask must be a power of 2 - 1"); // NOSONAR magic number
65+
Assert.isTrue(bits.length() < 32 && (mask == 0 || bits.lastIndexOf('0') < bits.indexOf('1')),
66+
"Mask must be a power of 2 - 1"); // NOSONAR magic number
6567
this.mask = mask;
6668
int arraySize = this.mask + 1;
6769
this.lockTable = new ReentrantLock[arraySize];
@@ -71,14 +73,14 @@ public DefaultLockRegistry(int mask) {
7173
}
7274

7375
/**
74-
* Obtains a lock by masking the lockKey's hashCode() with
76+
* Obtain a lock by masking the lockKey's hashCode() with
7577
* the mask and using the result as an index to the lock table.
7678
* @param lockKey the object used to derive the lock index.
7779
*/
7880
@Override
7981
public Lock obtain(Object lockKey) {
8082
Assert.notNull(lockKey, "'lockKey' must not be null");
81-
Integer lockIndex = lockKey.hashCode() & this.mask;
83+
int lockIndex = lockKey.hashCode() & this.mask;
8284
return this.lockTable[lockIndex];
8385
}
8486

spring-integration-core/src/main/java/org/springframework/integration/util/CheckedCallable.java

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -58,16 +58,4 @@ else if (t instanceof Error error) { // NOSONAR
5858
};
5959
}
6060

61-
/**
62-
* Wrap the {@link #call()} into unchecked {@link Callable}.
63-
* Re-throw its exception wrapped with a {@link IllegalStateException}.
64-
* @return the unchecked {@link Callable}.
65-
* @since 6.3.7
66-
* @deprecated since 6.5 in favor of {@link #unchecked()}.
67-
*/
68-
@Deprecated(since = "6.5", forRemoval = true)
69-
default Callable<T> uncheckedCallable() {
70-
return unchecked();
71-
}
72-
7361
}

spring-integration-core/src/main/kotlin/org/springframework/integration/dsl/KotlinIntegrationFlowDefinition.kt

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -280,16 +280,6 @@ class KotlinIntegrationFlowDefinition(@PublishedApi internal val delegate: Integ
280280
this.delegate.wireTap(wireTapSpec)
281281
}
282282

283-
/**
284-
* Populate the `Control Bus` EI Pattern specific [MessageHandler] implementation
285-
* at the current [IntegrationFlow] chain position.
286-
* @since 6.4
287-
*/
288-
@Deprecated("Use 'controlBus()' instead.", replaceWith = ReplaceWith("controlBus()"))
289-
fun controlBusOnRegistry(endpointConfigurer: GenericEndpointSpec<ServiceActivatingHandler>.() -> Unit = {}) {
290-
controlBus(endpointConfigurer)
291-
}
292-
293283
/**
294284
* Populate the `Control Bus` EI Pattern specific [MessageHandler] implementation
295285
* at the current [IntegrationFlow] chain position.

spring-integration-core/src/test/java/org/springframework/integration/handler/advice/LockRequestHandlerAdviceTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ void verifyLockAroundHandler() throws ExecutionException, InterruptedException,
114114
public static class Config {
115115

116116
@Bean
117-
LockRegistry lockRegistry() {
117+
LockRegistry<?> lockRegistry() {
118118
return new DefaultLockRegistry();
119119
}
120120

@@ -124,7 +124,7 @@ QueueChannel discardChannel() {
124124
}
125125

126126
@Bean
127-
LockRequestHandlerAdvice lockRequestHandlerAdvice(LockRegistry lockRegistry, QueueChannel discardChannel) {
127+
LockRequestHandlerAdvice lockRequestHandlerAdvice(LockRegistry<?> lockRegistry, QueueChannel discardChannel) {
128128
LockRequestHandlerAdvice lockRequestHandlerAdvice =
129129
new LockRequestHandlerAdvice(lockRegistry, (message) -> message.getHeaders().get(LOCK_KEY_HEADER));
130130
lockRequestHandlerAdvice.setDiscardChannel(discardChannel);

spring-integration-groovy/src/main/groovy/org/springframework/integration/groovy/dsl/GroovyIntegrationFlowDefinition.groovy

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -264,23 +264,6 @@ class GroovyIntegrationFlowDefinition {
264264
this
265265
}
266266

267-
/**
268-
* Populate the {@code Control Bus} EI Pattern specific {@link MessageHandler} implementation
269-
* at the current {@link IntegrationFlow} chain position.
270-
* @param endpointConfigurer the {@link Consumer} to accept integration endpoint options.
271-
* @since 6.4
272-
* @deprecated in favor of {@link #controlBus}
273-
*/
274-
@Deprecated(since = '6.5', forRemoval = true)
275-
@SuppressWarnings('removal')
276-
GroovyIntegrationFlowDefinition controlBusOnRegistry(
277-
@DelegatesTo(value = GenericEndpointSpec<ServiceActivatingHandler>, strategy = Closure.DELEGATE_FIRST)
278-
@ClosureParams(value = SimpleType.class, options = 'org.springframework.integration.dsl.GenericEndpointSpec')
279-
Closure<?> endpointConfigurer = null) {
280-
281-
controlBus endpointConfigurer
282-
}
283-
284267
/**
285268
* Populate the {@code Control Bus} EI Pattern specific {@link MessageHandler} implementation
286269
* at the current {@link IntegrationFlow} chain position.

0 commit comments

Comments
 (0)