add javadoc for Resource.resolveAlias

Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
This commit is contained in:
Lachlan Roberts 2022-07-28 18:00:56 +10:00
parent 99cb930d78
commit 7d7dd41dee
1 changed files with 5 additions and 0 deletions

View File

@ -77,6 +77,11 @@ public abstract class Resource implements ResourceFactory, Closeable
return __defaultUseCaches;
}
/**
* Attempt to resolve the real path of a Resource to potentially remove any symlinks causing the Resource to be an alias.
* @param resource the resource to resolve.
* @return a new Resource resolved to the real path of the original Resource, or the original resource if it was not an alias.
*/
public static Resource resolveAlias(Resource resource)
{
if (!resource.isAlias())