From c3e6297cc631dea8265efca93eb3a389bd958595 Mon Sep 17 00:00:00 2001 From: Rob Bygrave Date: Tue, 26 Nov 2024 20:16:35 +1300 Subject: [PATCH] Update test for AutoCloseIterator (#82) --- avaje-jex/src/test/java/io/avaje/jex/jdk/AutoCloseIterator.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/avaje-jex/src/test/java/io/avaje/jex/jdk/AutoCloseIterator.java b/avaje-jex/src/test/java/io/avaje/jex/jdk/AutoCloseIterator.java index 36ce4986..01528d66 100644 --- a/avaje-jex/src/test/java/io/avaje/jex/jdk/AutoCloseIterator.java +++ b/avaje-jex/src/test/java/io/avaje/jex/jdk/AutoCloseIterator.java @@ -5,7 +5,7 @@ public class AutoCloseIterator implements Iterator, AutoCloseable { private final Iterator it; - private boolean closed; + private volatile boolean closed; public AutoCloseIterator(Iterator it) { this.it = it;