Skip to content

Commit bbbfc47

Browse files
committed
Use StandardEvalCtx in the ZeroMqMessageHandler
A simple one was used by mistake
1 parent e69285a commit bbbfc47

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spring-integration-zeromq/src/main/java/org/springframework/integration/zeromq/outbound/ZeroMqMessageHandler.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public class ZeroMqMessageHandler extends AbstractReactiveMessageHandler
6868
implements ManageableLifecycle {
6969

7070
private static final List<SocketType> VALID_SOCKET_TYPES =
71-
Arrays.asList(SocketType.PAIR, SocketType.PUSH, SocketType.PUB);
71+
List.of(SocketType.PAIR, SocketType.PUSH, SocketType.PUB);
7272

7373
private final AtomicBoolean running = new AtomicBoolean();
7474

@@ -202,7 +202,7 @@ public String getComponentType() {
202202
protected void onInit() {
203203
super.onInit();
204204
BeanFactory beanFactory = getBeanFactory();
205-
this.evaluationContext = ExpressionUtils.createSimpleEvaluationContext(beanFactory);
205+
this.evaluationContext = ExpressionUtils.createStandardEvaluationContext(beanFactory);
206206
if (this.messageMapper == null) {
207207
ConfigurableCompositeMessageConverter messageConverter = new ConfigurableCompositeMessageConverter();
208208
messageConverter.setBeanFactory(beanFactory);

0 commit comments

Comments
 (0)