Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Vogel2021-07-30 11:23:07 -0400
committerLars Vogel2021-09-10 09:35:43 -0400
commit6bc8222bbdb3b7b06095467bab52648d7087eec4 (patch)
treee171143115bdfd2c6ce072085eb951c53ff3c4a1
parent64517dd0ec99c96e2db8abaaeed2f21eae02a829 (diff)
downloadeclipse.platform.team-6bc8222bbdb3b7b06095467bab52648d7087eec4.tar.gz
eclipse.platform.team-6bc8222bbdb3b7b06095467bab52648d7087eec4.tar.xz
eclipse.platform.team-6bc8222bbdb3b7b06095467bab52648d7087eec4.zip
Done with the JDT UI cleanup action. Change-Id: Ibdb80cce2094679610af32d4973ed1f061c53cc9 Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com> Reviewed-on: https://git.eclipse.org/r/c/platform/eclipse.platform.team/+/183555 Tested-by: Platform Bot <platform-bot@eclipse.org>
-rw-r--r--bundles/org.eclipse.compare/compare/org/eclipse/compare/internal/CompareUIPlugin.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/bundles/org.eclipse.compare/compare/org/eclipse/compare/internal/CompareUIPlugin.java b/bundles/org.eclipse.compare/compare/org/eclipse/compare/internal/CompareUIPlugin.java
index dd5fb0088..9f8c8a74b 100644
--- a/bundles/org.eclipse.compare/compare/org/eclipse/compare/internal/CompareUIPlugin.java
+++ b/bundles/org.eclipse.compare/compare/org/eclipse/compare/internal/CompareUIPlugin.java
@@ -24,6 +24,7 @@ import java.net.URL;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
+import java.util.Comparator;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Hashtable;
@@ -906,7 +907,7 @@ public final class CompareUIPlugin extends AbstractUIPlugin {
}
ArrayList<CompareFilterDescriptor> list = new ArrayList<>(result);
- Collections.sort(list, (left, right) -> left.getFilterId().compareTo(right.getFilterId()));
+ Collections.sort(list, Comparator.comparing(CompareFilterDescriptor::getFilterId));
return result.toArray(new CompareFilterDescriptor[result.size()]);
}

Back to the top