Details
-
Refactoring
-
Status: Closed
-
Minor
-
Resolution: Complete
-
None
Description
There are at least two places where Collections.sort() is used to get the min or max element of a collection: AbstractCorrelatingMessageHandler and SequenceSizeReleaseStrategy.
Collections.min() and Collections.max() can be used.
This could be a performance improvement depending on the usage, but the most important improvement is code readability.