Skip to content

Commit

Permalink
修改 isInit 需要声明为volatile
Browse files Browse the repository at this point in the history
  • Loading branch information
digdeep126 committed Jan 8, 2016
1 parent 35fa817 commit e7c00a3
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -5,7 +5,7 @@

public class HintHandlerFactory {

private static boolean isInit = false;
private static volatile boolean isInit = false;

//sql注释的类型处理handler 集合,现在支持两种类型的处理:sql,schema
private static Map<String,HintHandler> hintHandlerMap = new HashMap<String,HintHandler>();
Expand Down

0 comments on commit e7c00a3

Please sign in to comment.