You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2022/02/13 16:10:51 UTC
[commons-codec] branch master updated: Inline Collections.sort(Comparator).
This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-codec.git
The following commit(s) were added to refs/heads/master by this push:
new e57b88e Inline Collections.sort(Comparator).
e57b88e is described below
commit e57b88ed485b54418b19358328095cd14ea1e742
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Sun Feb 13 11:10:48 2022 -0500
Inline Collections.sort(Comparator).
---
.../java/org/apache/commons/codec/language/DaitchMokotoffSoundex.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/main/java/org/apache/commons/codec/language/DaitchMokotoffSoundex.java b/src/main/java/org/apache/commons/codec/language/DaitchMokotoffSoundex.java
index 622cf7d..1e92aa5 100644
--- a/src/main/java/org/apache/commons/codec/language/DaitchMokotoffSoundex.java
+++ b/src/main/java/org/apache/commons/codec/language/DaitchMokotoffSoundex.java
@@ -232,7 +232,7 @@ public class DaitchMokotoffSoundex implements StringEncoder {
// sort RULES by pattern length in descending order
for (final Map.Entry<Character, List<Rule>> rule : RULES.entrySet()) {
final List<Rule> ruleList = rule.getValue();
- Collections.sort(ruleList, new Comparator<Rule>() {
+ ruleList.sort(new Comparator<Rule>() {
@Override
public int compare(final Rule rule1, final Rule rule2) {
return rule2.getPatternLength() - rule1.getPatternLength();