Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'org.eclipse.ua.tests/help/org/eclipse/ua/tests/help/util/TocModelSerializer.java')
-rw-r--r--org.eclipse.ua.tests/help/org/eclipse/ua/tests/help/util/TocModelSerializer.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/org.eclipse.ua.tests/help/org/eclipse/ua/tests/help/util/TocModelSerializer.java b/org.eclipse.ua.tests/help/org/eclipse/ua/tests/help/util/TocModelSerializer.java
index f83ef4de1..ac65faf26 100644
--- a/org.eclipse.ua.tests/help/org/eclipse/ua/tests/help/util/TocModelSerializer.java
+++ b/org.eclipse.ua.tests/help/org/eclipse/ua/tests/help/util/TocModelSerializer.java
@@ -34,8 +34,8 @@ public class TocModelSerializer {
buf.append(indent + " href=\"" + toc.getHref() + "\">\n");
ITopic[] topics = toc.getTopics();
- for (int i=0;i<topics.length;++i) {
- buf.append(serializeAux(topics[i], indent + " "));
+ for (ITopic topic : topics) {
+ buf.append(serializeAux(topic, indent + " "));
}
buf.append(indent + "</toc>");
@@ -52,8 +52,8 @@ public class TocModelSerializer {
buf.append(indent + " href=\"" + topic.getHref() + "\">\n");
ITopic[] subtopics = topic.getSubtopics();
- for (int i=0;i<subtopics.length;++i) {
- buf.append(serializeAux(subtopics[i], indent + " "));
+ for (ITopic subtopic : subtopics) {
+ buf.append(serializeAux(subtopic, indent + " "));
}
buf.append(indent + "</topic>\n");

Back to the top