From b69fd62711cc385cb59dd95c8611d9a16a9c58e0 Mon Sep 17 00:00:00 2001 From: Tim Molter Date: Mon, 14 Oct 2024 20:56:21 +0200 Subject: [PATCH] fix test --- .../java/org/knowm/xchange/dto/marketdata/ConcurrencyTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xchange-core/src/test/java/org/knowm/xchange/dto/marketdata/ConcurrencyTest.java b/xchange-core/src/test/java/org/knowm/xchange/dto/marketdata/ConcurrencyTest.java index e6bb0e18329..a00d8abcabe 100644 --- a/xchange-core/src/test/java/org/knowm/xchange/dto/marketdata/ConcurrencyTest.java +++ b/xchange-core/src/test/java/org/knowm/xchange/dto/marketdata/ConcurrencyTest.java @@ -239,7 +239,7 @@ private static void readOrderBook(OrderBook orderBook, boolean oldWay) { } } } else { - var stamp = orderBook.lock.readLock(); + long stamp = orderBook.lock.readLock(); for (LimitOrder ask : orderBook.getAsks()) { temp += ask.hashCode(); }