From 8111aebbf10ede77933d98884b538b0d41424acd Mon Sep 17 00:00:00 2001 From: "David M. Lloyd" Date: Sat, 16 Nov 2024 06:33:43 -0600 Subject: [PATCH] Make `ResourceUtils` public (#372) We sometimes need to canonicalize a path before handing it off to the resource loader. So, make the method public to avoid duplication. --- .../main/java/io/smallrye/common/resource/ResourceUtils.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resource/src/main/java/io/smallrye/common/resource/ResourceUtils.java b/resource/src/main/java/io/smallrye/common/resource/ResourceUtils.java index 7698ce6..3c00b0c 100644 --- a/resource/src/main/java/io/smallrye/common/resource/ResourceUtils.java +++ b/resource/src/main/java/io/smallrye/common/resource/ResourceUtils.java @@ -3,7 +3,7 @@ /** * Miscellaneous resource-related utilities. */ -final class ResourceUtils { +public final class ResourceUtils { private ResourceUtils() { } @@ -39,7 +39,7 @@ private ResourceUtils() { * @param path the path name (must not be {@code null}) * @return the canonical equivalent path (not {@code null}) */ - static String canonicalizeRelativePath(String path) { + public static String canonicalizeRelativePath(String path) { final int length = path.length(); if (length == 0) { return path;