madrob commented on a change in pull request #207: URL: https://github.com/apache/solr/pull/207#discussion_r666532753
########## File path: solr/core/src/java/org/apache/solr/handler/admin/BaseHandlerApiSupport.java ########## @@ -159,9 +159,7 @@ private Object getParams0(String param) { if (o == null) o = pathValues.get(param); if (o == null && useRequestParams) o = origParams.getParams(param); if (o instanceof List) { - @SuppressWarnings({"rawtypes"}) - List l = (List) o; - return l.toArray(new String[l.size()]); + return ((List<?>) o).toArray(); Review comment: You're right, we need to use the toArray overload that accepts a type argument. -- 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: issues-unsubscr...@solr.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org For additional commands, e-mail: issues-h...@solr.apache.org