jojochuang commented on code in PR #3810:
URL: https://github.com/apache/ozone/pull/3810#discussion_r1022220935
##########
hadoop-ozone/ozonefs-common/src/main/java/org/apache/hadoop/fs/ozone/BasicRootedOzoneFileSystem.java:
##########
@@ -773,7 +787,7 @@ numEntries, uri, workingDir, getUsername())
// exhausted.
} while (tmpStatusList.size() == numEntries);
- return statuses.toArray(new FileStatus[0]);
+ return statuses.toArray(new FileStatusAdapter[0]);
Review Comment:
is it possible to return statuses instead? Save one temporary array
allocation.
--
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]