dubbo icon indicating copy to clipboard operation
dubbo copied to clipboard

[Code optimization]Make constructors of implementation classes of Protocol private

Open tswstarplanet opened this issue 7 years ago • 0 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.

I find some constructors of implementation classes of Protocol are public, but these constructor are not invoke obviously, they are often used in ExtensionLoader implicitly by invoking reflection api "newInstance". I think we should make these constructors private, if we don't want to let them be invoke obviously. By the way, if fix the problem, some unit tests must be modification because some tests use these constructors.

tswstarplanet avatar Jan 25 '19 16:01 tswstarplanet