From 26864471c24bf389ab8fc913decc3d069404688b Mon Sep 17 00:00:00 2001 From: Xiao Chen Date: Tue, 24 Jul 2018 21:42:00 -0700 Subject: [PATCH] HDFS-13761. Add toString Method to AclFeature Class. Contributed by Shweta. --- .../org/apache/hadoop/hdfs/server/namenode/AclFeature.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/AclFeature.java b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/AclFeature.java index 97d4759742..6d546f81c4 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/AclFeature.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/AclFeature.java @@ -72,6 +72,11 @@ public boolean equals(Object o) { 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);