adoroszlai opened a new pull request, #5691:
URL: https://github.com/apache/ozone/pull/5691

   ## What changes were proposed in this pull request?
   
   Currently `SCMBlockProtocolServer#sortDatanodes` has to create a new list 
just to cast all items (defined as `Node`) to `DatanodeDetails` (which 
implements `Node`).  This is necessary because `NetworkTopology` defines its 
return type too loosely.  We can fix that by using method-local type definition.
   
   https://issues.apache.org/jira/browse/HDDS-9675
   
   ## How was this patch tested?
   
   Refactoring, covered by existing build/test.
   
   https://github.com/adoroszlai/ozone/actions/runs/7020414682


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