[
https://issues.apache.org/jira/browse/HDFS-3481?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13401757#comment-13401757
]
Eli Collins commented on HDFS-3481:
-----------------------------------
Yea, I don't think there's a workaround since java doesn't allow generic array
creation. In this case we know the type statically so you could put the puts in
a static method with @SuppressWarnings({"unchecked"}), but IMO that's harder to
read so the current code in your patch is better. +1 to the latest patch.
> Refactor HttpFS handling of JAX-RS query string parameters
> ----------------------------------------------------------
>
> Key: HDFS-3481
> URL: https://issues.apache.org/jira/browse/HDFS-3481
> Project: Hadoop HDFS
> Issue Type: Improvement
> Affects Versions: 2.0.1-alpha
> Reporter: Alejandro Abdelnur
> Assignee: Alejandro Abdelnur
> Fix For: 2.0.1-alpha
>
> Attachments: HDFS-3481.patch, HDFS-3481.patch, HDFS-3481.patch
>
>
> Explicit parameters in the HttpFSServer became quite messy as they are the
> union of all possible parameters for all operations.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira