madrob commented on a change in pull request #107:
URL: https://github.com/apache/solr/pull/107#discussion_r624398602
##########
File path:
solr/core/src/java/org/apache/solr/client/solrj/embedded/EmbeddedSolrServer.java
##########
@@ -253,7 +252,9 @@ public void writeResults(ResultContext ctx, JavaBinCodec
codec) throws IOExcepti
createJavaBinCodec(callback,
resolver).setWritableDocFields(resolver).marshal(rsp.getValues(), out);
try (InputStream in = out.toInputStream()) {
- return (NamedList<Object>) new
JavaBinCodec(resolver).unmarshal(in);
+ @SuppressWarnings({"unchecked"})
+ NamedList<Object> resolved = (NamedList<Object>) new
JavaBinCodec(resolver).unmarshal(in);
Review comment:
Can’t suppress the warning on a return statement.
--
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]