magibney commented on code in PR #1557:
URL: https://github.com/apache/solr/pull/1557#discussion_r1547710405


##########
solr/core/src/java/org/apache/solr/search/SolrDocumentFetcher.java:
##########
@@ -114,9 +114,33 @@ public class SolrDocumentFetcher {
 
   private final Set<String> largeFields;
 
-  private Collection<String> storedHighlightFieldNames; // lazy populated; use 
getter
+  @SuppressWarnings({"unchecked", "rawtypes"})
+  private final Collection<String>[] storedHighlightFieldNames =
+      new Collection[1]; // lazy populated; use getter
+
+  @SuppressWarnings({"unchecked", "rawtypes"})
+  private final Collection<String>[] indexedFieldNames =
+      new Collection[1]; // lazy populated; use getter

Review Comment:
   🤦 right, thanks for catching this; clearly not the intention!



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

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