Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'org.eclipse.help.base/src/org/eclipse/help/search/HelpIndexBuilder.java')
-rw-r--r--org.eclipse.help.base/src/org/eclipse/help/search/HelpIndexBuilder.java4
1 files changed, 2 insertions, 2 deletions
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 73846edda..6e29ee7c5 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.equals("") && !href.startsWith("http://") && !href.startsWith("https://")) { //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
+ && !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.equals("") && !href.startsWith("http://") && !href.startsWith("https://")) { //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
+ 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);

Back to the top