Skip to content

Commit 50cf3b1

Browse files
committed
Various fixes after upgrades
1 parent b081992 commit 50cf3b1

File tree

4 files changed

+12
-11
lines changed

4 files changed

+12
-11
lines changed

spring-integration-core/src/test/java/org/springframework/integration/config/annotation/MessagingAnnotationPostProcessorTests.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2019 the original author or authors.
2+
* Copyright 2002-2022 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.
@@ -404,7 +404,7 @@ protected Object doInvoke(ExecutionCallback callback, Object target, Message<?>
404404
@Target({ ElementType.METHOD })
405405
@Retention(RetentionPolicy.RUNTIME)
406406
@ServiceActivator(inputChannel = "eventBus")
407-
public static @interface EventHandler {
407+
public @interface EventHandler {
408408

409409
}
410410

spring-integration-r2dbc/src/main/java/org/springframework/integration/r2dbc/outbound/R2dbcMessageHandler.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2020-2021 the original author or authors.
2+
* Copyright 2020-2022 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.
@@ -218,6 +218,7 @@ private Map<SqlIdentifier, Object> transformIntoSqlIdentifierMap(Map<String, Obj
218218
return sqlIdentifierObjectMap;
219219
}
220220

221+
@SuppressWarnings("deprecation")
221222
private Mono<Void> handleInsert(Message<?> message) {
222223
if (this.tableNameExpression != null) {
223224
String tableName = evaluateTableNameExpression(message);

spring-integration-redis/src/test/java/org/springframework/integration/redis/config/RedisQueueGatewayIntegrationTests.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2014-2019 the original author or authors.
2+
* Copyright 2014-2022 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.
@@ -71,7 +71,7 @@ public class RedisQueueGatewayIntegrationTests extends RedisAvailableTests {
7171
@Before
7272
public void setup() {
7373
RedisConnectionFactory jcf = getConnectionFactoryForTest();
74-
jcf.getConnection().del(this.queueName);
74+
jcf.getConnection().keyCommands().del(this.queueName);
7575
this.inboundGateway.start();
7676
}
7777

spring-integration-redis/src/test/java/org/springframework/integration/redis/outbound/RedisOutboundGatewayTests.java

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2014-2019 the original author or authors.
2+
* Copyright 2014-2022 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.
@@ -126,7 +126,7 @@ public void testIncrementAtomicCommand() {
126126
@Test
127127
@RedisAvailable
128128
public void testGetCommand() {
129-
this.setDelCommandChannel.send(MessageBuilder.withPayload(new String[] { "foo", "bar" })
129+
this.setDelCommandChannel.send(MessageBuilder.withPayload(new String[]{ "foo", "bar" })
130130
.setHeader(RedisHeaders.COMMAND, "SET").build());
131131
Message<?> receive = this.replyChannel.receive(1000);
132132
assertThat(receive).isNotNull();
@@ -158,13 +158,13 @@ public void testMGetCommand() {
158158
RedisConnection connection = this.getConnectionFactoryForTest().getConnection();
159159
byte[] value1 = "bar1".getBytes();
160160
byte[] value2 = "bar2".getBytes();
161-
connection.set("foo1".getBytes(), value1);
162-
connection.set("foo2".getBytes(), value2);
163-
this.mgetCommandChannel.send(MessageBuilder.withPayload(new String[] { "foo1", "foo2" }).build());
161+
connection.stringCommands().set("foo1".getBytes(), value1);
162+
connection.stringCommands().set("foo2".getBytes(), value2);
163+
this.mgetCommandChannel.send(MessageBuilder.withPayload(new String[]{ "foo1", "foo2" }).build());
164164
Message<?> receive = this.replyChannel.receive(1000);
165165
assertThat(receive).isNotNull();
166166
assertThat((List<byte[]>) receive.getPayload()).containsExactly(value1, value2);
167-
connection.del("foo1".getBytes(), "foo2".getBytes());
167+
connection.keyCommands().del("foo1".getBytes(), "foo2".getBytes());
168168
}
169169

170170
}

0 commit comments

Comments
 (0)