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;
|
||||
public static ESLogger logger=Loggers.getLogger("ik-analyzer");
|
||||
public static final ESLogger logger=Loggers.getLogger("ik-analyzer");
|
||||
|
||||
private static ScheduledExecutorService pool = Executors.newScheduledThreadPool(1);
|
||||
|
||||
|
@ -5,7 +5,7 @@ import org.elasticsearch.common.logging.Loggers;
|
||||
|
||||
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 static void sleep(Type type,int num){
|
||||
|
@ -47,7 +47,7 @@ import java.util.Stack;
|
||||
*/
|
||||
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 = "&&||-()':={}[],";
|
||||
|
||||
|
@ -44,7 +44,7 @@ import org.wltea.analyzer.lucene.IKAnalyzer;
|
||||
*/
|
||||
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){
|
||||
//构建IK分词器,使用smart分词模式
|
||||
|
@ -64,7 +64,7 @@ import org.wltea.analyzer.lucene.IKAnalyzer;
|
||||
*/
|
||||
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