Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'org.eclipse.help.webapp/src/org/eclipse/help/internal/webapp/servlet/ChildLinkInserter.java')
-rw-r--r--org.eclipse.help.webapp/src/org/eclipse/help/internal/webapp/servlet/ChildLinkInserter.java12
1 files changed, 6 insertions, 6 deletions
diff --git a/org.eclipse.help.webapp/src/org/eclipse/help/internal/webapp/servlet/ChildLinkInserter.java b/org.eclipse.help.webapp/src/org/eclipse/help/internal/webapp/servlet/ChildLinkInserter.java
index e3ca3861d..8f21ad7a1 100644
--- a/org.eclipse.help.webapp/src/org/eclipse/help/internal/webapp/servlet/ChildLinkInserter.java
+++ b/org.eclipse.help.webapp/src/org/eclipse/help/internal/webapp/servlet/ChildLinkInserter.java
@@ -90,11 +90,11 @@ public class ChildLinkInserter {
String servletPath = req.getServletPath();
if ("/nav".equals(servletPath)) return new ITopic[0]; //$NON-NLS-1$
Toc[] tocs = HelpPlugin.getTocManager().getTocs(locale);
- for (int i = 0; i < tocs.length; i++) {
- if (pathInfo.equals(tocs[i].getTopic())) {
- return tocs[i].getTopics();
+ for (Toc toc : tocs) {
+ if (pathInfo.equals(toc.getTopic())) {
+ return toc.getTopics();
}
- ITopic topic = tocs[i].getTopic(pathInfo);
+ ITopic topic = toc.getTopic(pathInfo);
if (topic != null) {
return topic.getSubtopics();
}
@@ -116,8 +116,8 @@ public class ChildLinkInserter {
public void addStyle() throws UnsupportedEncodingException, IOException {
ITopic[] subtopics = getSubtopics();
- for (int i = 0; i < subtopics.length; ++i) {
- if (ScopeUtils.showInTree(subtopics[i], scope)) {
+ for (ITopic subtopic : subtopics) {
+ if (ScopeUtils.showInTree(subtopic, scope)) {
out.write(HAS_CHILDREN.getBytes(UTF_8));
return;
}

Back to the top