iwasakims commented on a change in pull request #3374:
URL: https://github.com/apache/hadoop/pull/3374#discussion_r720295679
##########
File path:
hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/DFSUtilClient.java
##########
@@ -357,6 +357,13 @@ public static int compareBytes(byte[] left, byte[] right) {
return path;
}
+ /**
+ * Given a list of path components returns a string.
+ */
+ public static String byteArray2String(byte[][] pathComponents) {
+ return bytes2String(byteArray2bytes(pathComponents));
Review comment:
I think tests added to TestJsonUtil covers this. The byteArray2String is
just composite of existing bytes2String and byteArray2bytes.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]