epugh commented on code in PR #4213:
URL: https://github.com/apache/solr/pull/4213#discussion_r2942185745


##########
solr/core/src/java/org/apache/solr/cluster/placement/plugins/OrderedNodePlacementPlugin.java:
##########
@@ -93,7 +93,7 @@ public List<PlacementPlan> computePlacements(
       }
 
       List<WeightedNode> nodesForRequest =
-          
weightedNodes.stream().filter(request::isTargetingNode).collect(Collectors.toList());
+          weightedNodes.stream().filter(request::isTargetingNode).toList();

Review Comment:
   humm, I'm hoping no differences because tests don't fail and IntelliJ 
recommended it!   Let's see what copilot says!



-- 
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