slfan1989 commented on code in PR #7563: URL: https://github.com/apache/hadoop/pull/7563#discussion_r2022183487
########## hadoop-hdfs-project/hadoop-hdfs-client/src/test/java/org/apache/hadoop/hdfs/util/TestByteArrayManager.java: ########## @@ -391,7 +396,7 @@ static void sleepMs(long ms) { Thread.sleep(ms); } catch (InterruptedException e) { e.printStackTrace(); - Assert.fail("Sleep is interrupted: " + e); + Assertions.fail("Sleep is interrupted: " + e); Review Comment: We should optimize the usage of `Assertions.fail` by importing it statically. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: common-issues-h...@hadoop.apache.org