Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomasz Zarna2014-04-09 21:31:21 +0000
committerTomasz Zarna2014-04-09 23:23:11 +0000
commit9ab2b4c6dcabb2f31fa96ff1f7adef48d7cac406 (patch)
tree6a593a9b45017775b95b225d018033ff0702b3eb
parentdf87f343eaa583d8171de5cd081a29b1b1d9890b (diff)
downloadorg.eclipse.mylyn.tasks-9ab2b4c6dcabb2f31fa96ff1f7adef48d7cac406.tar.gz
org.eclipse.mylyn.tasks-9ab2b4c6dcabb2f31fa96ff1f7adef48d7cac406.tar.xz
org.eclipse.mylyn.tasks-9ab2b4c6dcabb2f31fa96ff1f7adef48d7cac406.zip
in PersonProposalProvider use String.CASE_INSENSITIVE_ORDER
Change-Id: Ibf0a14dfe728f9e095b7a94235773933cb6fe8c3 Signed-off-by: Tomasz Zarna <tomasz.zarna@tasktop.com>
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/PersonProposalProvider.java7
1 files changed, 1 insertions, 6 deletions
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/PersonProposalProvider.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/PersonProposalProvider.java
index 379a2bb32..756c80ba9 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/PersonProposalProvider.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/PersonProposalProvider.java
@@ -14,7 +14,6 @@ package org.eclipse.mylyn.internal.tasks.ui;
import java.util.Arrays;
import java.util.Collection;
-import java.util.Comparator;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
@@ -205,11 +204,7 @@ public class PersonProposalProvider implements IContentProposalProvider {
return addressSet;
}
- addressSet = new TreeSet<String>(new Comparator<String>() {
- public int compare(String s1, String s2) {
- return s1.compareToIgnoreCase(s2);
- }
- });
+ addressSet = new TreeSet<String>(String.CASE_INSENSITIVE_ORDER);
if (errorProposals != null && !errorProposals.isEmpty()) {
for (String proposal : errorProposals.keySet()) {

Back to the top