Skip to content

Commit

Permalink
HADOOP-18172: Change scope of InodeTree and its member methods to mak…
Browse files Browse the repository at this point in the history
…e them accessible from outside package. (#4144)

Reviewed-by: Virajith Jalaparti <virajith@apache.org>
  • Loading branch information
xinglin authored Apr 20, 2022
1 parent 4f7b2de commit 96ee487
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@

@InterfaceAudience.Private
@InterfaceStability.Unstable
abstract class InodeTree<T> {
public abstract class InodeTree<T> {
enum ResultKind {
INTERNAL_DIR,
EXTERNAL_DIR
Expand Down Expand Up @@ -410,7 +410,7 @@ private boolean hasFallbackLink() {
return rootFallbackLink != null;
}

protected INodeLink<T> getRootFallbackLink() {
public INodeLink<T> getRootFallbackLink() {
Preconditions.checkState(root.isInternalDir());
return rootFallbackLink;
}
Expand Down Expand Up @@ -627,7 +627,7 @@ protected InodeTree(final Configuration config, final String viewName)
* If the input pathname leads to an internal mount-table entry then
* the target file system is one that represents the internal inode.
*/
static class ResolveResult<T> {
public static class ResolveResult<T> {
final ResultKind kind;
final T targetFileSystem;
final String resolvedPath;
Expand All @@ -654,7 +654,7 @@ boolean isInternalDir() {
* @return ResolveResult which allows further resolution of the remaining path
* @throws FileNotFoundException
*/
ResolveResult<T> resolve(final String p, final boolean resolveLastComponent)
public ResolveResult<T> resolve(final String p, final boolean resolveLastComponent)
throws IOException {
// TO DO: - more efficient to not split the path, but simply compare
String[] path = breakIntoPathComponents(p);
Expand Down Expand Up @@ -756,7 +756,7 @@ List<MountPoint<T>> getMountPoints() {
* @return home dir value from mount table; null if no config value
* was found.
*/
String getHomeDirPrefixValue() {
public String getHomeDirPrefixValue() {
return homedirPrefix;
}
}

0 comments on commit 96ee487

Please sign in to comment.