Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'org.eclipse.search/new search/org/eclipse/search/ui/text/FileTextSearchScope.java')
-rw-r--r--org.eclipse.search/new search/org/eclipse/search/ui/text/FileTextSearchScope.java9
1 files changed, 1 insertions, 8 deletions
diff --git a/org.eclipse.search/new search/org/eclipse/search/ui/text/FileTextSearchScope.java b/org.eclipse.search/new search/org/eclipse/search/ui/text/FileTextSearchScope.java
index c526a26e35e..94affc8f0b4 100644
--- a/org.eclipse.search/new search/org/eclipse/search/ui/text/FileTextSearchScope.java
+++ b/org.eclipse.search/new search/org/eclipse/search/ui/text/FileTextSearchScope.java
@@ -193,14 +193,7 @@ public final class FileTextSearchScope extends TextSearchScope {
return BasicElementLabels.getFilePattern("*"); //$NON-NLS-1$
}
Arrays.sort(ext);
- StringBuilder buf= new StringBuilder();
- for (int i= 0; i < ext.length; i++) {
- if (i > 0) {
- buf.append(", "); //$NON-NLS-1$
- }
- buf.append(ext[i]);
- }
- return BasicElementLabels.getFilePattern(buf.toString());
+ return BasicElementLabels.getFilePattern(String.join(", ", ext)); //$NON-NLS-1$
}
/**

Back to the top