Update Master to 5.1.0.BUILD-SNAPSHOT

`JedisConnection.execute()` no longer accepts `null` arguments.

8adea79e67

* Spring Security 5.1; Reactor 3.2
This commit is contained in:
Gary Russell
2018-03-12 21:13:32 -04:00
committed by Artem Bilan
parent 6718d8d433
commit 525eb004ec
3 changed files with 13 additions and 10 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2014-2015 the original author or authors.
* Copyright 2014-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -35,12 +35,15 @@ import org.springframework.util.ObjectUtils;
* The Gateway component implementation to perform Redis commands with provided arguments and to return command result.
*
* @author Artem Bilan
* @author Gary Russell
* @since 4.0
*/
public class RedisOutboundGateway extends AbstractReplyProducingMessageHandler {
private static final SpelExpressionParser PARSER = new SpelExpressionParser();
private static final byte[][] EMPTY_ARGS = new byte[0][];
private final RedisTemplate<?, ?> redisTemplate;
private EvaluationContext evaluationContext;
@@ -131,7 +134,7 @@ public class RedisOutboundGateway extends AbstractReplyProducingMessageHandler {
}
}
final byte[][] actualArgs = args;
final byte[][] actualArgs = args != null ? args : EMPTY_ARGS;
return this.redisTemplate.execute(
(RedisCallback<Object>) connection -> connection.execute(command, actualArgs));