From fb1c89f680a8fda10147dc84a3888ec55daa0711 Mon Sep 17 00:00:00 2001 From: Artem Bilan Date: Tue, 4 Oct 2022 16:07:12 -0400 Subject: [PATCH] AsyncGatewayTests: Fix to currentThread() method --- .../springframework/integration/gateway/AsyncGatewayTests.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-integration-core/src/test/java/org/springframework/integration/gateway/AsyncGatewayTests.java b/spring-integration-core/src/test/java/org/springframework/integration/gateway/AsyncGatewayTests.java index fac9f9ee2b..64b11acf67 100644 --- a/spring-integration-core/src/test/java/org/springframework/integration/gateway/AsyncGatewayTests.java +++ b/spring-integration-core/src/test/java/org/springframework/integration/gateway/AsyncGatewayTests.java @@ -248,7 +248,7 @@ public class AsyncGatewayTests { reply.complete(null); } catch (InterruptedException ex) { - Thread.currentThread.interrupt(); + Thread.currentThread().interrupt(); ReflectionUtils.rethrowRuntimeException(ex); } }).start();