Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Vogel2020-01-06 17:00:44 +0000
committerLars Vogel2020-01-10 17:37:41 +0000
commit890f62e121fbde1b3f7c6f17b3d42c4b72c0ce92 (patch)
tree4bad0ba83ab67111b83800689e03037a7594186f
parent1c5a16f4134649638261fd34819cc135621ef641 (diff)
downloadeclipse.platform.ua-890f62e121fbde1b3f7c6f17b3d42c4b72c0ce92.tar.gz
eclipse.platform.ua-890f62e121fbde1b3f7c6f17b3d42c4b72c0ce92.tar.xz
eclipse.platform.ua-890f62e121fbde1b3f7c6f17b3d42c4b72c0ce92.zip
Change-Id: I87aae462d9e2aa50a34c14f0b64c3f5fa916a816 Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
-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