Copilot commented on code in PR #10710:
URL: https://github.com/apache/ozone/pull/10710#discussion_r3557524518
##########
hadoop-ozone/httpfsgateway/src/main/java/org/apache/ozone/fs/http/server/FSOperations.java:
##########
@@ -842,7 +837,7 @@ public Map execute(FileSystem fs) throws IOException {
*/
@InterfaceAudience.Private
public static class FSHomeDir
- implements FileSystemAccess.FileSystemExecutor<JSONObject> {
+ implements FileSystemAccess.FileSystemExecutor<Map> {
Review Comment:
The Map-based JSON executors introduced in this migration use raw `Map`
types (eg `FileSystemExecutor<Map>` / `public Map execute(...)`), which loses
type-safety and propagates rawtypes/unchecked warnings into callers. Since
helpers like `toJSON(...)` already return `Map<String, Object>`, prefer
parameterizing these executors as `Map<String, Object>` as well (and similarly
for other Map-returning executors in this file).
--
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]