kinow opened a new pull request #64: IMAGING-151: use a copy of the list, make 
members package-protected/private, and re-use Comparator
URL: https://github.com/apache/commons-imaging/pull/64
 
 
   This PR creates a `Comparator` for `ColorCount`, replacing two comparators 
created in different parts of the code with the same logic.
   
   The list that was sorted was a member of a class that could be used 
elsewhere. So instead of altering the values in that list, now other classes 
need to access that list through a method that returns a copy of the list.
   
   Members in the package-protected class were made package-protected (from 
public) or private.
   
   Bruno

----------------------------------------------------------------
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:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to