rename createResource -> create
Signed-off-by: Ludovic Orban <lorban@bitronix.be>
This commit is contained in:
parent
fbfed70fe1
commit
e0c9943f4d
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue