Skip to content

Commit 8f32430

Browse files
committed
Upgrade to Spring Data Moore RC3; fix sonar smells
1 parent 0c29f7d commit 8f32430

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ ext {
5353
rabbitmqVersion = project.hasProperty('rabbitmqVersion') ? project.rabbitmqVersion : '5.7.3'
5454
rabbitmqHttpClientVersion = '3.2.0.RELEASE'
5555
reactorVersion = '3.3.0.RC1'
56-
springDataCommonsVersion = '2.2.0.BUILD-SNAPSHOT'
56+
springDataCommonsVersion = '2.2.0.RC3'
5757
springVersion = project.hasProperty('springVersion') ? project.springVersion : '5.2.0.RC2'
5858
springRetryVersion = '1.2.4.RELEASE'
5959
}

spring-rabbit/src/main/java/org/springframework/amqp/rabbit/listener/SimpleMessageListenerContainer.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -217,14 +217,14 @@ public void setConcurrency(String concurrency) {
217217
try {
218218
int separatorIndex = concurrency.indexOf('-');
219219
if (separatorIndex != -1) {
220-
int concurrentConsumers = Integer.parseInt(concurrency.substring(0, separatorIndex));
221-
int maxConcurrentConsumers = Integer.parseInt(concurrency.substring(separatorIndex + 1));
222-
Assert.isTrue(maxConcurrentConsumers >= concurrentConsumers,
220+
int consumers = Integer.parseInt(concurrency.substring(0, separatorIndex));
221+
int maxConsumers = Integer.parseInt(concurrency.substring(separatorIndex + 1));
222+
Assert.isTrue(maxConsumers >= consumers,
223223
"'maxConcurrentConsumers' value must be at least 'concurrentConsumers'");
224224
this.concurrentConsumers = 1;
225225
this.maxConcurrentConsumers = null;
226-
setConcurrentConsumers(concurrentConsumers);
227-
setMaxConcurrentConsumers(maxConcurrentConsumers);
226+
setConcurrentConsumers(consumers);
227+
setMaxConcurrentConsumers(maxConsumers);
228228
}
229229
else {
230230
setConcurrentConsumers(Integer.parseInt(concurrency));

0 commit comments

Comments
 (0)