ArafatKhan2198 commented on code in PR #6651:
URL: https://github.com/apache/ozone/pull/6651#discussion_r1593847839
##########
hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/shell/TestOzoneShellHA.java:
##########
@@ -409,12 +408,12 @@ private int getNumOfBuckets(String bucketPrefix)
}
/**
- * Parse output into ArrayList with Gson.
+ * Parse output into ArrayList with Jackson.
* @return ArrayList
*/
- private ArrayList<LinkedTreeMap<String, String>> parseOutputIntoArrayList()
- throws UnsupportedEncodingException {
- return new Gson().fromJson(out.toString(DEFAULT_ENCODING),
ArrayList.class);
+ private List<HashMap<String, Object>> parseOutputIntoArrayList() throws
IOException {
Review Comment:
Thanks for the comment @devmadhuu
I have made the changes.
##########
hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/shell/TestOzoneShellHA.java:
##########
@@ -1996,7 +1995,7 @@ public void testLinkedAndNonLinkedBucketMetaData()
execute(ozoneShell, new String[] {"bucket", "list", "/volume1"});
// Expect valid JSON array
- final ArrayList<LinkedTreeMap<String, String>> bucketListLinked =
+ final List<HashMap<String, Object>> bucketListLinked =
Review Comment:
Done!
--
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]