hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ehi...@apache.org
Subject [08/50] hadoop git commit: HDFS-13761. Add toString Method to AclFeature Class. Contributed by Shweta.
Date Tue, 31 Jul 2018 09:25:50 GMT
HDFS-13761. Add toString Method to AclFeature Class. Contributed by Shweta.


Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/26864471
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/26864471
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/26864471

Branch: refs/heads/HDFS-12090
Commit: 26864471c24bf389ab8fc913decc3d069404688b
Parents: 849c45d
Author: Xiao Chen <xiao@apache.org>
Authored: Tue Jul 24 21:42:00 2018 -0700
Committer: Xiao Chen <xiao@apache.org>
Committed: Tue Jul 24 21:42:47 2018 -0700

----------------------------------------------------------------------
 .../java/org/apache/hadoop/hdfs/server/namenode/AclFeature.java | 5 +++++
 1 file changed, 5 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hadoop/blob/26864471/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/AclFeature.java
----------------------------------------------------------------------
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 97d4759..6d546f8 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
@@ -73,6 +73,11 @@ public class AclFeature implements INode.Feature, ReferenceCounter {
   }
 
   @Override
+  public String toString() {
+    return "AclFeature : " + Integer.toHexString(hashCode()) + " Size of entries : " + entries.length;
+  }
+
+  @Override
   public int hashCode() {
     return Arrays.hashCode(entries);
   }


---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org


Mime
View raw message