diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/blockmanagement/InvalidateBlocks.java b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/blockmanagement/InvalidateBlocks.java old mode 100644 new mode 100755 index 7c837920c9..247ea62081 --- a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/blockmanagement/InvalidateBlocks.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/blockmanagement/InvalidateBlocks.java @@ -112,17 +112,11 @@ long getECBlocks() { } private LightWeightHashSet getBlocksSet(final DatanodeInfo dn) { - if (nodeToBlocks.containsKey(dn)) { - return nodeToBlocks.get(dn); - } - return null; + return nodeToBlocks.get(dn); } private LightWeightHashSet getECBlocksSet(final DatanodeInfo dn) { - if (nodeToECBlocks.containsKey(dn)) { - return nodeToECBlocks.get(dn); - } - return null; + return nodeToECBlocks.get(dn); } private LightWeightHashSet getBlocksSet(final DatanodeInfo dn,