HDFS-13761. Add toString Method to AclFeature Class. Contributed by Shweta.

This commit is contained in:
Xiao Chen 2018-07-24 21:42:00 -07:00
parent 849c45db18
commit 26864471c2
1 changed files with 5 additions and 0 deletions

View File

@ -72,6 +72,11 @@ public class AclFeature implements INode.Feature, ReferenceCounter {
return Arrays.equals(entries, ((AclFeature) o).entries);
}
@Override
public String toString() {
return "AclFeature : " + Integer.toHexString(hashCode()) + " Size of entries : " + entries.length;
}
@Override
public int hashCode() {
return Arrays.hashCode(entries);