From 4af8761e4c6f8a6e83c2abbb9aab6974cba7cdd0 Mon Sep 17 00:00:00 2001 From: Tsz-wo Sze Date: Thu, 18 Oct 2012 21:29:12 +0000 Subject: [PATCH] HDFS-4074. Remove the unused default constructor from INode. Contributed by Brandon Li git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1399866 13f79535-47bb-0310-9956-ffa450edef68 --- hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt | 3 +++ .../java/org/apache/hadoop/hdfs/server/namenode/INode.java | 7 ------- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt index 0a2e67a346..5e7506e390 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt +++ b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt @@ -400,6 +400,9 @@ Release 2.0.3-alpha - Unreleased HDFS-4073. Two minor improvements to FSDirectory. (Jing Zhao via szetszwo) + HDFS-4074. Remove the unused default constructor from INode. (Brandon Li + via szetszwo) + OPTIMIZATIONS BUG FIXES diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/INode.java b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/INode.java index c9d26e4b54..cc5e689e2f 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/INode.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/INode.java @@ -96,13 +96,6 @@ long combine(long bits, long record) { } } - protected INode() { - name = null; - parent = null; - modificationTime = 0; - accessTime = 0; - } - INode(PermissionStatus permissions, long mTime, long atime) { this.name = null; this.parent = null;