Skip to content

Commit c273207

Browse files
committed
Remove inintended changes.
1 parent cebf98d commit c273207

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/INodeDirectory.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -890,12 +890,12 @@ public void cleanSubtree(ReclaimContext reclaimContext, final int snapshotId,
890890
*/
891891
@Override
892892
public boolean metadataEquals(INodeDirectoryAttributes other) {
893-
return other != null && getQuotaCounts().equals(other.getQuotaCounts())
893+
return other != null
894+
&& getQuotaCounts().equals(other.getQuotaCounts())
894895
&& getPermissionLong() == other.getPermissionLong()
895896
&& getAclFeature() == other.getAclFeature()
896897
&& getXAttrFeature() == other.getXAttrFeature();
897898
}
898-
899899

900900
/*
901901
* The following code is to dump the tree recursively for testing.

hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/INodeDirectoryAttributes.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424

2525
import org.apache.hadoop.thirdparty.com.google.common.base.Preconditions;
2626

27-
2827
/**
2928
* The attributes of an inode.
3029
*/
@@ -59,7 +58,8 @@ public boolean isDirectory() {
5958

6059
@Override
6160
public boolean metadataEquals(INodeDirectoryAttributes other) {
62-
return other != null && getQuotaCounts().equals(other.getQuotaCounts())
61+
return other != null
62+
&& getQuotaCounts().equals(other.getQuotaCounts())
6363
&& getPermissionLong() == other.getPermissionLong()
6464
&& getAclFeature() == other.getAclFeature()
6565
&& getXAttrFeature() == other.getXAttrFeature();

0 commit comments

Comments
 (0)