mirror of https://github.com/apache/lucene.git
- 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:
parent
0304a92060
commit
96141a2795
|
@ -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++) {
|
||||
|
|
|
@ -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");
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue