Details
-
Type:
Refactoring
-
Status: Closed
-
Priority:
Minor
-
Resolution: Complete
-
Affects Version/s: None
-
Component/s: Core
-
Labels:
-
Pull Request URL:
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.