Issue #4000 - Name change to isSameName

Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
This commit is contained in:
Joakim Erdfelt 2019-08-21 17:11:44 -05:00
parent 30bd3914cf
commit 88e37b177c
2 changed files with 4 additions and 4 deletions

View File

@ -52,7 +52,7 @@ public class AllowSymLinkAliasChecker implements AliasCheck
Path path = pathResource.getPath();
Path alias = pathResource.getAliasPath();
if (PathResource.isSame(alias, path))
if (PathResource.isSameName(alias, path))
return false; // Unknown why this is an alias
if (hasSymbolicLink(path) && Files.isSameFile(path, alias))

View File

@ -104,7 +104,7 @@ public class PathResource extends Resource
{
Path real = abs.toRealPath(FOLLOW_LINKS);
if (!isSame(abs, real))
if (!isSameName(abs, real))
{
return real;
}
@ -122,7 +122,7 @@ public class PathResource extends Resource
}
/**
* Test if the paths are the same.
* Test if the paths are the same name.
*
* <p>
* If the real path is not the same as the absolute path
@ -175,7 +175,7 @@ public class PathResource extends Resource
* in implementation to a.equals(b)
* </p>
*/
public static boolean isSame(Path pathA, Path pathB)
public static boolean isSameName(Path pathA, Path pathB)
{
int aCount = pathA.getNameCount();
int bCount = pathB.getNameCount();