Skip to content

Commit

Permalink
Make ResourceUtils public (#372)
Browse files Browse the repository at this point in the history
We sometimes need to canonicalize a path before handing it off to the resource loader. So, make the method public to avoid duplication.
  • Loading branch information
dmlloyd authored Nov 16, 2024
1 parent fa9f203 commit 8111aeb
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/**
* Miscellaneous resource-related utilities.
*/
final class ResourceUtils {
public final class ResourceUtils {
private ResourceUtils() {
}

Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 8111aeb

Please sign in to comment.