Skip to content

Commit

Permalink
fix fluent
Browse files Browse the repository at this point in the history
  • Loading branch information
weidongxu-microsoft committed Aug 2, 2024
1 parent 1b4be56 commit 4fed2c3
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -262,12 +262,14 @@ public static String getBuilderSuffix() {
public static String getServiceClientBuilderPackageName(ServiceClient serviceClient) {
JavaSettings settings = JavaSettings.getInstance();
String builderPackage = serviceClient.getPackage();
if (serviceClient.getBuilderPackageName() != null) {
builderPackage = serviceClient.getBuilderPackageName();
} else if (settings.isFluent()) {
if (settings.isFluent()) {
builderPackage = settings.getPackage(settings.getImplementationSubpackage());
} else if (settings.isGenerateSyncAsyncClients() || settings.isDataPlaneClient()) {
builderPackage = settings.getPackage();
if (serviceClient.getBuilderPackageName() != null) {
builderPackage = serviceClient.getBuilderPackageName();
} else {
builderPackage = settings.getPackage();
}
}
return builderPackage;
}
Expand Down

0 comments on commit 4fed2c3

Please sign in to comment.