Remove static Resources.isContainedIn API
This commit is contained in:
parent
b4d526796e
commit
6ce295ce7a
|
@ -418,19 +418,6 @@ public abstract class Resource implements ResourceFactory
|
|||
return newResource(url);
|
||||
}
|
||||
|
||||
/**
|
||||
* Return true if the Resource r is contained in the Resource containingResource, either because
|
||||
* containingResource is a folder or a jar file or any form of resource capable of containing other resources.
|
||||
*
|
||||
* @param r the contained resource
|
||||
* @param containingResource the containing resource
|
||||
* @return true if the Resource is contained, false otherwise
|
||||
*/
|
||||
public static boolean isContainedIn(Resource r, Resource containingResource)
|
||||
{
|
||||
return r.isContainedIn(containingResource);
|
||||
}
|
||||
|
||||
/**
|
||||
* Return the Path corresponding to this resource.
|
||||
*
|
||||
|
|
|
@ -405,7 +405,7 @@ public class MetaData
|
|||
{
|
||||
for (Resource r : resources)
|
||||
{
|
||||
if (Resource.isContainedIn(resource, r))
|
||||
if (resource.isContainedIn(r))
|
||||
{
|
||||
enclosingResource = r;
|
||||
break;
|
||||
|
|
|
@ -405,7 +405,7 @@ public class MetaData
|
|||
{
|
||||
for (Resource r : resources)
|
||||
{
|
||||
if (Resource.isContainedIn(resource, r))
|
||||
if (resource.isContainedIn(r))
|
||||
{
|
||||
enclosingResource = r;
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue