diff --git a/jetty-util/src/test/java/org/eclipse/jetty/util/SharedBlockingCallbackTest.java b/jetty-util/src/test/java/org/eclipse/jetty/util/SharedBlockingCallbackTest.java index c22e8856b08..157c94db32d 100644 --- a/jetty-util/src/test/java/org/eclipse/jetty/util/SharedBlockingCallbackTest.java +++ b/jetty-util/src/test/java/org/eclipse/jetty/util/SharedBlockingCallbackTest.java @@ -32,7 +32,6 @@ import org.hamcrest.Matchers; import org.junit.Assert; import org.junit.Test; -import static org.hamcrest.Matchers.equalTo; import static org.hamcrest.Matchers.instanceOf; import static org.hamcrest.Matchers.not; import static org.hamcrest.Matchers.sameInstance; @@ -242,7 +241,7 @@ public class SharedBlockingCallbackTest try (Blocker blocker=sbcb.acquire()) { - assertThat(blocker,not(equalTo(b0))); + assertThat(blocker,not(sameInstance(b0))); b0.succeeded(); blocker.succeeded(); }