Merge pull request #149 from DevFactory/release/make-public-static-constant-fix-1
public static" fields should be constant
This commit is contained in:
commit
28a1c8bdf9
@ -79,7 +79,7 @@ public class Dictionary {
|
|||||||
* 配置对象
|
* 配置对象
|
||||||
*/
|
*/
|
||||||
private Configuration configuration;
|
private Configuration configuration;
|
||||||
public static ESLogger logger=Loggers.getLogger("ik-analyzer");
|
public static final ESLogger logger=Loggers.getLogger("ik-analyzer");
|
||||||
|
|
||||||
private static ScheduledExecutorService pool = Executors.newScheduledThreadPool(1);
|
private static ScheduledExecutorService pool = Executors.newScheduledThreadPool(1);
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@ import org.elasticsearch.common.logging.Loggers;
|
|||||||
|
|
||||||
public class Sleep {
|
public class Sleep {
|
||||||
|
|
||||||
public static ESLogger logger= Loggers.getLogger("ik-analyzer");
|
public static final ESLogger logger= Loggers.getLogger("ik-analyzer");
|
||||||
|
|
||||||
public enum Type{MSEC,SEC,MIN,HOUR};
|
public enum Type{MSEC,SEC,MIN,HOUR};
|
||||||
public static void sleep(Type type,int num){
|
public static void sleep(Type type,int num){
|
||||||
|
@ -47,7 +47,7 @@ import java.util.Stack;
|
|||||||
*/
|
*/
|
||||||
public class IKQueryExpressionParser {
|
public class IKQueryExpressionParser {
|
||||||
|
|
||||||
public static ESLogger logger= Loggers.getLogger("ik-analyzer");
|
public static final ESLogger logger= Loggers.getLogger("ik-analyzer");
|
||||||
|
|
||||||
//public static final String LUCENE_SPECIAL_CHAR = "&&||-()':={}[],";
|
//public static final String LUCENE_SPECIAL_CHAR = "&&||-()':={}[],";
|
||||||
|
|
||||||
|
@ -44,7 +44,7 @@ import org.wltea.analyzer.lucene.IKAnalyzer;
|
|||||||
*/
|
*/
|
||||||
public class IKAnalzyerDemo {
|
public class IKAnalzyerDemo {
|
||||||
|
|
||||||
public static ESLogger logger= Loggers.getLogger("ik-analyzer");
|
public static final ESLogger logger= Loggers.getLogger("ik-analyzer");
|
||||||
|
|
||||||
public static void main(String[] args){
|
public static void main(String[] args){
|
||||||
//构建IK分词器,使用smart分词模式
|
//构建IK分词器,使用smart分词模式
|
||||||
|
@ -64,7 +64,7 @@ import org.wltea.analyzer.lucene.IKAnalyzer;
|
|||||||
*/
|
*/
|
||||||
public class LuceneIndexAndSearchDemo {
|
public class LuceneIndexAndSearchDemo {
|
||||||
|
|
||||||
public static ESLogger logger= Loggers.getLogger("ik-analyzer");
|
public static final ESLogger logger= Loggers.getLogger("ik-analyzer");
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 模拟:
|
* 模拟:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user