From 7a0f948e1b598ba3bd64f7a5c304ddc1ad0bc981 Mon Sep 17 00:00:00 2001 From: Davide Angelocola Date: Sat, 20 Jun 2026 20:27:51 +0200 Subject: [PATCH] refactor(reader): rename CLIENT to DEFAULT_HTTP_CLIENT in VortexHttpReader Make it clear the shared HttpClient is the default used when the caller does not supply one (the open(uri, registry, HttpClient) overload). Co-Authored-By: Claude Opus 4.8 --- .../java/io/github/dfa1/vortex/reader/VortexHttpReader.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reader/src/main/java/io/github/dfa1/vortex/reader/VortexHttpReader.java b/reader/src/main/java/io/github/dfa1/vortex/reader/VortexHttpReader.java index 492d0e08..77e392ba 100644 --- a/reader/src/main/java/io/github/dfa1/vortex/reader/VortexHttpReader.java +++ b/reader/src/main/java/io/github/dfa1/vortex/reader/VortexHttpReader.java @@ -33,7 +33,7 @@ public final class VortexHttpReader implements VortexHandle { /// Shared across all instances. JDK HttpClient is heavyweight and designed for reuse; /// per-reader instantiation would create redundant connection pools and selector threads. /// Never closed: lifetime tracks the JVM. - private static final HttpClient CLIENT = HttpClient.newHttpClient(); + private static final HttpClient DEFAULT_HTTP_CLIENT = HttpClient.newHttpClient(); private final URI uri; private final HttpClient client; @@ -66,7 +66,7 @@ public static VortexHttpReader open(URI uri) throws IOException { } public static VortexHttpReader open(URI uri, ReadRegistry registry) throws IOException { - return open(uri, registry, CLIENT); + return open(uri, registry, DEFAULT_HTTP_CLIENT); } /// Opens a remote Vortex file using a caller-supplied [HttpClient].