dubbo icon indicating copy to clipboard operation
dubbo copied to clipboard

ExtensionLoader.getActivateExtension 一个小的优化

Open sin-ning opened this issue 7 years ago • 1 comments

  • [ ] I have searched the issues of this repository and believe that this is not a duplicate.
  • [ -] I have checked the FAQ of this repository and believe that this is not a duplicate.

Environment

  • Dubbo version: 2.7.3

ExtensionLoader.getActivateExtension


                if (isMatchGroup(group, activateGroup)) {
                    // 这个应该放到 if 里面,会更合适
                    T ext = getExtension(name);
                    if (!names.contains(name)
                            && !names.contains(Constants.REMOVE_VALUE_PREFIX + name)
                            && isActive(activateValue, url)) {
                        exts.add(ext);
                    }


sin-ning avatar Jul 15 '19 01:07 sin-ning

Can you optimize the code and post pull request?

cvictory avatar Jul 15 '19 07:07 cvictory