Skip to content

Commit

Permalink
enhancement: extract duplicated method calls to variable (#3482)
Browse files Browse the repository at this point in the history
extract duplicated method calls to variable
  • Loading branch information
kezhenxu94 authored and carryxyh committed Feb 15, 2019
1 parent bd6e5f1 commit e72e0b2
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -358,8 +358,9 @@ protected synchronized void doExport() {
if (StringUtils.isEmpty(path)) {
path = interfaceName;
}
ProviderModel providerModel = new ProviderModel(getUniqueServiceName(), ref, interfaceClass);
ApplicationModel.initProviderModel(getUniqueServiceName(), providerModel);
String uniqueServiceName = getUniqueServiceName();
ProviderModel providerModel = new ProviderModel(uniqueServiceName, ref, interfaceClass);
ApplicationModel.initProviderModel(uniqueServiceName, providerModel);
doExportUrls();
}

Expand Down

0 comments on commit e72e0b2

Please sign in to comment.