diff --git a/java/benchmarks/src/main/java/javababushka/benchmarks/utils/Benchmarking.java b/java/benchmarks/src/main/java/javababushka/benchmarks/utils/Benchmarking.java index 48d16f998c..70dfe2d940 100644 --- a/java/benchmarks/src/main/java/javababushka/benchmarks/utils/Benchmarking.java +++ b/java/benchmarks/src/main/java/javababushka/benchmarks/utils/Benchmarking.java @@ -177,7 +177,7 @@ public static void testClientSetGet( finalI, concurrentNum, finalJ + 1, clientNum); } while (true) { - int iterationIncrement = iterationCounter.incrementAndGet(); + int iterationIncrement = iterationCounter.getAndIncrement(); if (iterationIncrement >= iterations) { break; }