madrob commented on a change in pull request #169: URL: https://github.com/apache/solr/pull/169#discussion_r652059563
########## File path: solr/solrj/src/java/org/apache/solr/client/solrj/io/Tuple.java ########## @@ -267,22 +255,21 @@ public void setFieldNames(List<String> fieldNames) { this.fieldNames = fieldNames; } - @SuppressWarnings({"unchecked", "rawtypes"}) - public List<Map> getMaps(Object key) { - return (List<Map>) this.fields.get(key); + @SuppressWarnings({"unchecked"}) + public List<Map<?,?>> getMaps(String key) { + return (List<Map<?,?>>) this.fields.get(key); } - public void setMaps(Object key, @SuppressWarnings({"rawtypes"})List<Map> maps) { + public void setMaps(String key, List<Map<?,?>> maps) { this.fields.put(key, maps); } - @SuppressWarnings({"unchecked", "rawtypes"}) - public Map<String, Map> getMetrics() { - return (Map<String, Map>) this.fields.get(StreamParams.METRICS); + @SuppressWarnings({"unchecked"}) + public Map<String, Map<?,?>> getMetrics() { + return (Map<String, Map<?,?>>) this.fields.get(StreamParams.METRICS); } - @SuppressWarnings({"rawtypes"}) - public void setMetrics(Map<String, Map> metrics) { + public void setMetrics(Map<String, Map<?,?>> metrics) { Review comment: Let's do that as part of the separate refactor of the Tuple constructor as well. https://issues.apache.org/jira/browse/SOLR-15480 -- 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. 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