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

View File

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