Apache Lucene open-source search software
- Cleaned up to avoid compiler warnings
Otis Gospodnetic96141a279534
diff --git a/src/demo/org/apache/lucene/demo/html/Entities.java b/src/demo/org/apache/lucene/demo/html/Entities.javaindex 2a3d68fd2c9..d2475814cf4 100644--- a/src/demo/org/apache/lucene/demo/html/Entities.java+++ b/src/demo/org/apache/lucene/demo/html/Entities.java@@ -81,7 +81,7 @@ public class Entities {}}- static final public String encode(String s) {+ public static final String encode(String s) {int length = s.length();StringBuffer buffer = new StringBuffer(length * 2);for (int i = 0; i < length; i++) {diff --git a/src/demo/org/apache/lucene/demo/html/Tags.java b/src/demo/org/apache/lucene/demo/html/Tags.javaindex d8da8f6c548..af672b42271 100644--- a/src/demo/org/apache/lucene/demo/html/Tags.java+++ b/src/demo/org/apache/lucene/demo/html/Tags.java@@ -52,19 +52,19 @@ package org.apache.lucene.demo.html;* information on the Apache Software Foundation, please see* <http://www.apache.org/>.*/-+import java.util.Collections;import java.util.HashSet;import java.util.Set;public final class Tags {-+/**- * contains all tags for which whitespaces have to be inserted for proper tokenization+ * contains all tags for which whitespaces have to be inserted for proper tokenization*/- public final static Set WS_ELEMS = Collections.synchronizedSet(new HashSet());-+ public static final Set WS_ELEMS = Collections.synchronizedSet(new HashSet());+static{WS_ELEMS.add("<hr");WS_ELEMS.add("<hr/"); // note that "<hr />" does not need to be listed explicitly@@ -97,5 +97,4 @@ public final class Tags {WS_ELEMS.add("<h6");WS_ELEMS.add("</h6");}-}