Skip to content

Commit

Permalink
remove .implementation from sdkName (Azure#16674)
Browse files Browse the repository at this point in the history
  • Loading branch information
weidongxu-microsoft authored Oct 23, 2020
1 parent 710454a commit cc52031
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,15 @@ public abstract class AzureServiceClient {

protected AzureServiceClient(HttpPipeline httpPipeline, SerializerAdapter serializerAdapter,
AzureEnvironment environment) {
sdkName = this.getClass().getPackage().getName();

this.httpPipeline = httpPipeline;
this.serializerAdapter = serializerAdapter;

String packageName = this.getClass().getPackage().getName();
String implementationSegment = ".implementation";
if (packageName.endsWith(implementationSegment)) {
packageName = packageName.substring(0, packageName.length() - implementationSegment.length());
}
this.sdkName = packageName;
}

/**
Expand Down

0 comments on commit cc52031

Please sign in to comment.