Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--org.eclipse.help.base/src/org/eclipse/help/internal/base/scope/ScopeRegistry.java4
-rw-r--r--org.eclipse.help.base/src/org/eclipse/help/search/HelpIndexBuilder.java4
-rw-r--r--org.eclipse.help.webapp/src/org/eclipse/help/internal/webapp/data/TopicFinder.java6
3 files changed, 7 insertions, 7 deletions
diff --git a/org.eclipse.help.base/src/org/eclipse/help/internal/base/scope/ScopeRegistry.java b/org.eclipse.help.base/src/org/eclipse/help/internal/base/scope/ScopeRegistry.java
index 35bf98fc1..5ef5b6542 100644
--- a/org.eclipse.help.base/src/org/eclipse/help/internal/base/scope/ScopeRegistry.java
+++ b/org.eclipse.help.base/src/org/eclipse/help/internal/base/scope/ScopeRegistry.java
@@ -219,14 +219,14 @@ public class ScopeRegistry {
return format(next,current);
next+=current;
}
- if (next.isEmpty())
+ if (next.isEmpty())
return null;
return next;
}
private String format(String next,char current)
{
- if (next.isEmpty())
+ if (next.isEmpty())
{
cursor++;
return current+""; //$NON-NLS-1$
diff --git a/org.eclipse.help.base/src/org/eclipse/help/search/HelpIndexBuilder.java b/org.eclipse.help.base/src/org/eclipse/help/search/HelpIndexBuilder.java
index 6e29ee7c5..825a77d81 100644
--- a/org.eclipse.help.base/src/org/eclipse/help/search/HelpIndexBuilder.java
+++ b/org.eclipse.help.base/src/org/eclipse/help/search/HelpIndexBuilder.java
@@ -536,7 +536,7 @@ public class HelpIndexBuilder {
href = getAttribute(topic, "topic"); //$NON-NLS-1$
}
if (href != null
- && !href.isEmpty() && !href.startsWith("http://") && !href.startsWith("https://")) { //$NON-NLS-1$ //$NON-NLS-2$
+ && !href.isEmpty() && !href.startsWith("http://") && !href.startsWith("https://")) { //$NON-NLS-1$ //$NON-NLS-2$
href = SearchIndex.getIndexableHref(href);
if (href != null)
hrefs.add(href);
@@ -545,7 +545,7 @@ public class HelpIndexBuilder {
for (int i = 0; i < subtopics.getLength(); i++) {
Element subtopic = (Element) subtopics.item(i);
href = getAttribute(subtopic, "href"); //$NON-NLS-1$
- if (href != null && !href.isEmpty() && !href.startsWith("http://") && !href.startsWith("https://")) { //$NON-NLS-1$ //$NON-NLS-2$
+ if (href != null && !href.isEmpty() && !href.startsWith("http://") && !href.startsWith("https://")) { //$NON-NLS-1$ //$NON-NLS-2$
href = SearchIndex.getIndexableHref(href);
if (href != null)
hrefs.add(href);
diff --git a/org.eclipse.help.webapp/src/org/eclipse/help/internal/webapp/data/TopicFinder.java b/org.eclipse.help.webapp/src/org/eclipse/help/internal/webapp/data/TopicFinder.java
index 3c2e533d9..a8d17f87e 100644
--- a/org.eclipse.help.webapp/src/org/eclipse/help/internal/webapp/data/TopicFinder.java
+++ b/org.eclipse.help.webapp/src/org/eclipse/help/internal/webapp/data/TopicFinder.java
@@ -215,7 +215,7 @@ public class TopicFinder {
* @return -1 if the toc is not found
*/
private int findTocContainingTopic(String topic) {
- if (topic == null || topic.isEmpty())
+ if (topic == null || topic.isEmpty())
return -1;
int index = topic.indexOf("/topic/"); //$NON-NLS-1$
@@ -246,7 +246,7 @@ public class TopicFinder {
if (index != -1)
topic = topic.substring(0, index);
- if (topic == null || topic.isEmpty())
+ if (topic == null || topic.isEmpty())
return -1;
// try to find in enabled tocs first
@@ -303,7 +303,7 @@ public class TopicFinder {
if (index != -1)
topic = topic.substring(0, index);
- if (topic == null || topic.isEmpty())
+ if (topic == null || topic.isEmpty())
return null;
if (selectedToc < 0)

Back to the top