rename createResource -> create

Signed-off-by: Ludovic Orban <lorban@bitronix.be>
This commit is contained in:
Ludovic Orban 2022-08-03 13:01:35 +02:00
parent fbfed70fe1
commit e0c9943f4d
3 changed files with 7 additions and 7 deletions

View File

@ -95,7 +95,7 @@ public class FileSystemPool implements Dumpable
}
// use root FS URI so that pool key/release/sweep is sane
URI rootURI = fileSystem.getPath("/").toUri();
Mount mount = new Mount(rootURI, Resource.createResource(uri));
Mount mount = new Mount(rootURI, Resource.create(uri));
retain(rootURI, fileSystem, mount);
return mount;
}

View File

@ -161,7 +161,7 @@ public abstract class Resource
* @param uri A URI.
* @return A Resource object.
*/
static Resource createResource(URI uri)
static Resource create(URI uri)
{
try
{
@ -474,7 +474,7 @@ public abstract class Resource
uri = URI.create(uri + URIUtil.SLASH);
resolvedUri = uri.resolve(subUriPath);
}
return createResource(resolvedUri);
return create(resolvedUri);
}
/**

View File

@ -124,7 +124,7 @@ public interface ResourceFactory
try
{
URI uri = url.toURI();
return Resource.createResource(uri);
return Resource.create(uri);
}
catch (URISyntaxException e)
{
@ -238,7 +238,7 @@ public interface ResourceFactory
else
LOG.warn("Leaked {} for {}", mount, uri);
}
return Resource.createResource(uri);
return Resource.create(uri);
}
@Override
@ -259,7 +259,7 @@ public interface ResourceFactory
Resource.Mount mount = Resource.mountIfNeeded(uri);
if (mount != null)
_mounts.add(mount);
return Resource.createResource(uri);
return Resource.create(uri);
}
@Override
@ -282,7 +282,7 @@ public interface ResourceFactory
Resource.Mount mount = Resource.mountIfNeeded(uri);
if (mount != null)
_mounts.add(mount);
return Resource.createResource(uri);
return Resource.create(uri);
}
@Override