4141import  com .github .rholder .retry .StopStrategies ;
4242import  com .github .rholder .retry .WaitStrategies ;
4343import  com .google .common .base .Predicate ;
44- import  java .lang .annotation .Annotation ;
45- import  java .util .*;
46- import  java .util .concurrent .TimeUnit ;
47- import  java .util .concurrent .atomic .AtomicBoolean ;
48- import  javax .annotation .Resource ;
49- import  javax .ws .rs .Path ;
50- import  javax .ws .rs .ext .Provider ;
5144import  org .apache .commons .collections .CollectionUtils ;
5245import  org .apache .commons .lang .StringUtils ;
5346import  org .glassfish .jersey .server .ResourceConfig ;
5447import  org .springframework .beans .factory .annotation .Autowired ;
5548import  org .springframework .context .ApplicationContext ;
5649
50+ import  javax .annotation .Resource ;
51+ import  javax .ws .rs .Path ;
52+ import  javax .ws .rs .ext .Provider ;
53+ import  java .lang .annotation .Annotation ;
54+ import  java .util .*;
55+ import  java .util .concurrent .TimeUnit ;
56+ import  java .util .concurrent .atomic .AtomicBoolean ;
57+ 
5758/** 
5859 * @author shangyu.wh 
5960 * @version $Id: MetaServerBootstrap.java, v 0.1 2018-01-16 11:28 shangyu.wh Exp $ 
@@ -241,7 +242,7 @@ private void openSessionRegisterServer() {
241242        Collection <AbstractServerHandler > customSessionServerHandlers  =
242243            this .customSessionServerHandlers ();
243244        if  (CollectionUtils .isNotEmpty (customSessionServerHandlers )) {
244-           mergedSessionServerHandlers .addAll (this . customSessionServerHandlers () );
245+           mergedSessionServerHandlers .addAll (customSessionServerHandlers );
245246        }
246247
247248        sessionServer  =
@@ -267,7 +268,7 @@ private void openSessionRegisterServer() {
267268  }
268269
269270  protected  Collection <AbstractServerHandler > customSessionServerHandlers () {
270-     return  Collections . emptyList ();
271+     return  new   ArrayList <> ();
271272  }
272273
273274  private  void  openDataRegisterServer () {
0 commit comments