madrob commented on a change in pull request #169:
URL: https://github.com/apache/solr/pull/169#discussion_r653798406



##########
File path: 
solr/solrj/src/java/org/apache/solr/client/solrj/io/eval/KnnRegressionEvaluator.java
##########
@@ -82,7 +82,9 @@ public Object doWork(Object ... values) throws IOException {
     }
 
     if(values[1] instanceof List) {
-      outcomes = (List) values[1];
+      @SuppressWarnings("unchecked")
+      List<Number> temp = (List<Number>) values[1];
+      outcomes = temp;

Review comment:
       You can only SuppressWarnings on a declaration, not just an assignment, 
so we need this unfortunate pattern here.




-- 
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:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to