slfan1989 commented on code in PR #7739:
URL: https://github.com/apache/hadoop/pull/7739#discussion_r2157778000


##########
hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestDFSStripedInputStream.java:
##########
@@ -218,9 +216,8 @@ public void testPread() throws Exception {
       int ret = in.read(startOffset, buf, 0, fileLen);
       assertEquals(remaining, ret);
       for (int i = 0; i < remaining; i++) {
-        Assert.assertEquals("Byte at " + (startOffset + i) + " should be the " 
+
-                "same",
-            expected[startOffset + i], buf[i]);
+        Assertions.assertEquals(expected[startOffset + i], buf[i],
+            "Byte at " + (startOffset + i) + " should be the " + "same");

Review Comment:
   It’s better to use static imports to avoid situations like Assertions.*.



-- 
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

Reply via email to