提交 aac42e5f authored 作者: noelgrandin's avatar noelgrandin

FullTextSettings is not accessed outside this package so it can get marked as package-private.

And its fields are not accessed outside itself, so they can get marked as private.
上级 203902a7
...@@ -19,43 +19,43 @@ import org.h2.util.SoftHashMap; ...@@ -19,43 +19,43 @@ import org.h2.util.SoftHashMap;
/** /**
* The global settings of a full text search. * The global settings of a full text search.
*/ */
public class FullTextSettings { class FullTextSettings {
/** /**
* The settings of open indexes. * The settings of open indexes.
*/ */
protected static final HashMap<String, FullTextSettings> SETTINGS = New.hashMap(); private static final HashMap<String, FullTextSettings> SETTINGS = New.hashMap();
/** /**
* Whether this instance has been initialized. * Whether this instance has been initialized.
*/ */
protected boolean initialized; private boolean initialized;
/** /**
* The set of words not to index (stop words). * The set of words not to index (stop words).
*/ */
protected HashSet<String> ignoreList = New.hashSet(); private HashSet<String> ignoreList = New.hashSet();
/** /**
* The set of words / terms. * The set of words / terms.
*/ */
protected HashMap<String, Integer> words = New.hashMap(); private HashMap<String, Integer> words = New.hashMap();
/** /**
* The set of indexes in this database. * The set of indexes in this database.
*/ */
protected HashMap<Integer, IndexInfo> indexes = New.hashMap(); private HashMap<Integer, IndexInfo> indexes = New.hashMap();
/** /**
* The prepared statement cache. * The prepared statement cache.
*/ */
protected SoftHashMap<Connection, SoftHashMap<String, PreparedStatement>> cache = private SoftHashMap<Connection, SoftHashMap<String, PreparedStatement>> cache =
new SoftHashMap<Connection, SoftHashMap<String, PreparedStatement>>(); new SoftHashMap<Connection, SoftHashMap<String, PreparedStatement>>();
/** /**
* The whitespace characters. * The whitespace characters.
*/ */
protected String whitespaceChars = " \t\n\r\f+\"*%&/()=?'!,.;:-_#@|^~`{}[]<>\\"; private String whitespaceChars = " \t\n\r\f+\"*%&/()=?'!,.;:-_#@|^~`{}[]<>\\";
/** /**
* Create a new instance. * Create a new instance.
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论