Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'org.eclipse.core.filebuffers.tests')
-rw-r--r--org.eclipse.core.filebuffers.tests/src/org/eclipse/core/filebuffers/tests/AbstractFileBufferDocCreationTests.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/org.eclipse.core.filebuffers.tests/src/org/eclipse/core/filebuffers/tests/AbstractFileBufferDocCreationTests.java b/org.eclipse.core.filebuffers.tests/src/org/eclipse/core/filebuffers/tests/AbstractFileBufferDocCreationTests.java
index 0b8172d838a..d3e8f62a94a 100644
--- a/org.eclipse.core.filebuffers.tests/src/org/eclipse/core/filebuffers/tests/AbstractFileBufferDocCreationTests.java
+++ b/org.eclipse.core.filebuffers.tests/src/org/eclipse/core/filebuffers/tests/AbstractFileBufferDocCreationTests.java
@@ -121,8 +121,8 @@ public abstract class AbstractFileBufferDocCreationTests {
private void assertParticipantsInvoked(String path, Class<?>[] expectedDSPsArray) {
LocationKind[] lks= getSupportLocationKinds();
- for(int i=0; i<lks.length; i++) {
- IDocument document= fManager.createEmptyDocument(new Path(path), lks[i]);
+ for (LocationKind lk : lks) {
+ IDocument document = fManager.createEmptyDocument(new Path(path), lk);
String content= document.get();
Set<String> expectedDSPs= new HashSet<>(Arrays.asList(toString(expectedDSPsArray)));
Set<String> actualDSPs= new HashSet<>(Arrays.asList(content.split("\n")));

Back to the top