- Cleaned up to avoid compiler warnings

git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150180 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Otis Gospodnetic 2004-01-29 12:25:50 +00:00
parent 0304a92060
commit 96141a2795
2 changed files with 6 additions and 7 deletions

View File

@ -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(); int length = s.length();
StringBuffer buffer = new StringBuffer(length * 2); StringBuffer buffer = new StringBuffer(length * 2);
for (int i = 0; i < length; i++) { for (int i = 0; i < length; i++) {

View File

@ -52,19 +52,19 @@ package org.apache.lucene.demo.html;
* information on the Apache Software Foundation, please see * information on the Apache Software Foundation, please see
* <http://www.apache.org/>. * <http://www.apache.org/>.
*/ */
import java.util.Collections; import java.util.Collections;
import java.util.HashSet; import java.util.HashSet;
import java.util.Set; import java.util.Set;
public final class Tags { 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{ static{
WS_ELEMS.add("<hr"); WS_ELEMS.add("<hr");
WS_ELEMS.add("<hr/"); // note that "<hr />" does not need to be listed explicitly 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");
WS_ELEMS.add("</h6"); WS_ELEMS.add("</h6");
} }
} }