Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Vogel2019-06-18 05:16:32 -0400
committerLars Vogel2019-06-18 05:16:32 -0400
commit784c9608a760e3ffac6d43c77cdde0bc2f5f8760 (patch)
tree8908c7607dd1853447ca433c5faeac41ce3b137c /org.eclipse.text
parent3e59edd77535744f1ee0a23a8db5be99d7d3f8c9 (diff)
downloadeclipse.platform.text-784c9608a760e3ffac6d43c77cdde0bc2f5f8760.tar.gz
eclipse.platform.text-784c9608a760e3ffac6d43c77cdde0bc2f5f8760.tar.xz
eclipse.platform.text-784c9608a760e3ffac6d43c77cdde0bc2f5f8760.zip
Use addAll, deleteAll instead of looping through a collectionI20190623-1800I20190621-1800I20190620-1800I20190620-0130I20190619-1820I20190619-1800
Change-Id: I35edd6a934a0f65f357a54e710c77c190706bb45 Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
Diffstat (limited to 'org.eclipse.text')
-rw-r--r--org.eclipse.text/src/org/eclipse/jface/text/TextUtilities.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/org.eclipse.text/src/org/eclipse/jface/text/TextUtilities.java b/org.eclipse.text/src/org/eclipse/jface/text/TextUtilities.java
index c9afe8dd1..f778e7a95 100644
--- a/org.eclipse.text/src/org/eclipse/jface/text/TextUtilities.java
+++ b/org.eclipse.text/src/org/eclipse/jface/text/TextUtilities.java
@@ -13,6 +13,7 @@
*******************************************************************************/
package org.eclipse.jface.text;
+import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
@@ -459,8 +460,7 @@ public class TextUtilities {
IDocumentPartitionerExtension2 extension2= (IDocumentPartitionerExtension2) p;
String[] c= extension2.getManagingPositionCategories();
if (c != null) {
- for (String element : c)
- categories.add(element);
+ Collections.addAll(categories, c);
}
}
}

Back to the top