chore: Make closeLatch a final.

This commit is contained in:
He-Pin(kerr) 2025-03-06 17:24:21 +08:00 • committed by Christian Tzolov
commit ab0baf9d8e

View file

@ -86,7 +86,7 @@ public class HttpClientSseClientTransport implements ClientMcpTransport {
private volatile boolean isClosing = false;
/** Latch for coordinating endpoint discovery */
private CountDownLatch closeLatch = new CountDownLatch(1);
private final CountDownLatch closeLatch = new CountDownLatch(1);
/** Holds the discovered message endpoint URL */
private final AtomicReference<String> messageEndpoint = new AtomicReference<>();