From 5d41a45f949d7bbcbecf1c2e9a744cd018b15a42 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christoph=20L=C3=A4ubrich?= Date: Sun, 10 Nov 2024 12:38:37 +0100 Subject: [PATCH] Make CacheResourcesManager Constructor used for test package protected MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It looks like the CacheResourcesManager(Cache cache) constructor is oly used for test, so this is made package protected now. This has the advantage that there is no public reference to google Cache API making it an internal implementation detail that can easily be exchanged. Signed-off-by: Christoph Läubrich --- .../org/eclipse/lemminx/uriresolver/CacheResourcesManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org.eclipse.lemminx/src/main/java/org/eclipse/lemminx/uriresolver/CacheResourcesManager.java b/org.eclipse.lemminx/src/main/java/org/eclipse/lemminx/uriresolver/CacheResourcesManager.java index 9e6032034..e12ed507f 100644 --- a/org.eclipse.lemminx/src/main/java/org/eclipse/lemminx/uriresolver/CacheResourcesManager.java +++ b/org.eclipse.lemminx/src/main/java/org/eclipse/lemminx/uriresolver/CacheResourcesManager.java @@ -144,7 +144,7 @@ public CacheResourcesManager() { this(CacheBuilder.newBuilder().maximumSize(100).expireAfterWrite(30, TimeUnit.SECONDS).build()); } - public CacheResourcesManager(Cache cache) { + CacheResourcesManager(Cache cache) { resourcesLoading = new HashMap<>(); protocolsForCache = new HashSet<>(); unavailableURICache = cache;