Skip to content

Commit 68182bf

Browse files
author
WangChengWei
committed
fix checkstyle [NeedBraces]
1 parent f4576d8 commit 68182bf

File tree

1 file changed

+2
-1
lines changed
  • hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/blockmanagement

1 file changed

+2
-1
lines changed

hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/blockmanagement/BlockManager.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -612,12 +612,13 @@ private int initMaxReplication(Configuration conf) throws IOException {
612612
+ DFSConfigKeys.DFS_REPLICATION_MAX_KEY
613613
+ " = " + maxR + " > " + Short.MAX_VALUE);
614614
}
615-
if (minReplication > maxR)
615+
if (minReplication > maxR) {
616616
throw new IOException("Unexpected configuration parameters: "
617617
+ DFSConfigKeys.DFS_NAMENODE_REPLICATION_MIN_KEY
618618
+ " = " + minReplication + " > "
619619
+ DFSConfigKeys.DFS_REPLICATION_MAX_KEY
620620
+ " = " + maxR);
621+
}
621622
return maxR;
622623
}
623624

0 commit comments

Comments
 (0)