提交 799d9a48 authored 作者: mysinmyc's avatar mysinmyc

Fix Tomcat clear static fields

上级 8be277a2
...@@ -66,10 +66,13 @@ public class DefaultAuthenticator implements Authenticator { ...@@ -66,10 +66,13 @@ public class DefaultAuthenticator implements Authenticator {
private boolean initialized; private boolean initialized;
private static final DefaultAuthenticator INSTANCE = new DefaultAuthenticator(); private static DefaultAuthenticator instance;
protected static final DefaultAuthenticator getInstance() { protected static final DefaultAuthenticator getInstance() {
return INSTANCE; if (instance==null) {
instance= new DefaultAuthenticator();
}
return instance;
} }
/** /**
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论