diff --git a/.codegen/api.java.tmpl b/.codegen/api.java.tmpl index 76756921d..b09dae39a 100644 --- a/.codegen/api.java.tmpl +++ b/.codegen/api.java.tmpl @@ -14,6 +14,7 @@ import java.util.function.Function; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import com.google.common.base.Strings; import com.databricks.sdk.core.ApiClient; import com.databricks.sdk.core.DatabricksException; import com.databricks.sdk.support.Generated; @@ -172,7 +173,7 @@ public class {{.PascalName}}API { {{- else if .Pagination.Token -}} { String token = response.get{{.Pagination.Token.Bind.PascalName}}(); - if (token == null) { + if (Strings.isNullOrEmpty(token)) { return null; } return request.set{{.Pagination.Token.PollField.PascalName}}(token); diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/AppsAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/AppsAPI.java index b81ad3704..f288a145d 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/AppsAPI.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/apps/AppsAPI.java @@ -6,6 +6,7 @@ import com.databricks.sdk.support.Generated; import com.databricks.sdk.support.Paginator; import com.databricks.sdk.support.Wait; +import com.google.common.base.Strings; import java.time.Duration; import java.util.Arrays; import java.util.concurrent.TimeoutException; @@ -243,7 +244,7 @@ public Iterable list(ListAppsRequest request) { ListAppsResponse::getApps, response -> { String token = response.getNextPageToken(); - if (token == null) { + if (Strings.isNullOrEmpty(token)) { return null; } return request.setPageToken(token); @@ -266,7 +267,7 @@ public Iterable listDeployments(ListAppDeploymentsRequest request ListAppDeploymentsResponse::getAppDeployments, response -> { String token = response.getNextPageToken(); - if (token == null) { + if (Strings.isNullOrEmpty(token)) { return null; } return request.setPageToken(token); diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/billing/BudgetsAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/billing/BudgetsAPI.java index 1c6472983..722c952dd 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/billing/BudgetsAPI.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/billing/BudgetsAPI.java @@ -4,6 +4,7 @@ import com.databricks.sdk.core.ApiClient; import com.databricks.sdk.support.Generated; import com.databricks.sdk.support.Paginator; +import com.google.common.base.Strings; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -82,7 +83,7 @@ public Iterable list(ListBudgetConfigurationsRequest reques ListBudgetConfigurationsResponse::getBudgets, response -> { String token = response.getNextPageToken(); - if (token == null) { + if (Strings.isNullOrEmpty(token)) { return null; } return request.setPageToken(token); diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/CatalogsAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/CatalogsAPI.java index 68096a0fd..42d46da20 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/CatalogsAPI.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/CatalogsAPI.java @@ -4,6 +4,7 @@ import com.databricks.sdk.core.ApiClient; import com.databricks.sdk.support.Generated; import com.databricks.sdk.support.Paginator; +import com.google.common.base.Strings; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -89,7 +90,7 @@ public Iterable list(ListCatalogsRequest request) { ListCatalogsResponse::getCatalogs, response -> { String token = response.getNextPageToken(); - if (token == null) { + if (Strings.isNullOrEmpty(token)) { return null; } return request.setPageToken(token); diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ConnectionsAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ConnectionsAPI.java index 10b8eafbc..90885580d 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ConnectionsAPI.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ConnectionsAPI.java @@ -4,6 +4,7 @@ import com.databricks.sdk.core.ApiClient; import com.databricks.sdk.support.Generated; import com.databricks.sdk.support.Paginator; +import com.google.common.base.Strings; import java.util.Map; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -91,7 +92,7 @@ public Iterable list(ListConnectionsRequest request) { ListConnectionsResponse::getConnections, response -> { String token = response.getNextPageToken(); - if (token == null) { + if (Strings.isNullOrEmpty(token)) { return null; } return request.setPageToken(token); diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ExternalLocationsAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ExternalLocationsAPI.java index 361875fbe..d6874ddcb 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ExternalLocationsAPI.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ExternalLocationsAPI.java @@ -4,6 +4,7 @@ import com.databricks.sdk.core.ApiClient; import com.databricks.sdk.support.Generated; import com.databricks.sdk.support.Paginator; +import com.google.common.base.Strings; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -94,7 +95,7 @@ public Iterable list(ListExternalLocationsRequest request) ListExternalLocationsResponse::getExternalLocations, response -> { String token = response.getNextPageToken(); - if (token == null) { + if (Strings.isNullOrEmpty(token)) { return null; } return request.setPageToken(token); diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/FunctionsAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/FunctionsAPI.java index 136c1d905..160a5dde5 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/FunctionsAPI.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/FunctionsAPI.java @@ -4,6 +4,7 @@ import com.databricks.sdk.core.ApiClient; import com.databricks.sdk.support.Generated; import com.databricks.sdk.support.Paginator; +import com.google.common.base.Strings; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -106,7 +107,7 @@ public Iterable list(ListFunctionsRequest request) { ListFunctionsResponse::getFunctions, response -> { String token = response.getNextPageToken(); - if (token == null) { + if (Strings.isNullOrEmpty(token)) { return null; } return request.setPageToken(token); diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ModelVersionsAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ModelVersionsAPI.java index a1c4cc0b6..e3651c35f 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ModelVersionsAPI.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ModelVersionsAPI.java @@ -4,6 +4,7 @@ import com.databricks.sdk.core.ApiClient; import com.databricks.sdk.support.Generated; import com.databricks.sdk.support.Paginator; +import com.google.common.base.Strings; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -112,7 +113,7 @@ public Iterable list(ListModelVersionsRequest request) { ListModelVersionsResponse::getModelVersions, response -> { String token = response.getNextPageToken(); - if (token == null) { + if (Strings.isNullOrEmpty(token)) { return null; } return request.setPageToken(token); diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/RegisteredModelsAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/RegisteredModelsAPI.java index d5b1fbb25..d9f8ae4c0 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/RegisteredModelsAPI.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/RegisteredModelsAPI.java @@ -4,6 +4,7 @@ import com.databricks.sdk.core.ApiClient; import com.databricks.sdk.support.Generated; import com.databricks.sdk.support.Paginator; +import com.google.common.base.Strings; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -150,7 +151,7 @@ public Iterable list(ListRegisteredModelsRequest request) { ListRegisteredModelsResponse::getRegisteredModels, response -> { String token = response.getNextPageToken(); - if (token == null) { + if (Strings.isNullOrEmpty(token)) { return null; } return request.setPageToken(token); diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ResourceQuotasAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ResourceQuotasAPI.java index 102f057bb..f15d8db9b 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ResourceQuotasAPI.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ResourceQuotasAPI.java @@ -4,6 +4,7 @@ import com.databricks.sdk.core.ApiClient; import com.databricks.sdk.support.Generated; import com.databricks.sdk.support.Paginator; +import com.google.common.base.Strings; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -66,7 +67,7 @@ public Iterable listQuotas(ListQuotasRequest request) { ListQuotasResponse::getQuotas, response -> { String token = response.getNextPageToken(); - if (token == null) { + if (Strings.isNullOrEmpty(token)) { return null; } return request.setPageToken(token); diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/SchemasAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/SchemasAPI.java index 441636890..2f118e487 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/SchemasAPI.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/SchemasAPI.java @@ -4,6 +4,7 @@ import com.databricks.sdk.core.ApiClient; import com.databricks.sdk.support.Generated; import com.databricks.sdk.support.Paginator; +import com.google.common.base.Strings; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -91,7 +92,7 @@ public Iterable list(ListSchemasRequest request) { ListSchemasResponse::getSchemas, response -> { String token = response.getNextPageToken(); - if (token == null) { + if (Strings.isNullOrEmpty(token)) { return null; } return request.setPageToken(token); diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/StorageCredentialsAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/StorageCredentialsAPI.java index 69d3b4f87..207c208df 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/StorageCredentialsAPI.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/StorageCredentialsAPI.java @@ -4,6 +4,7 @@ import com.databricks.sdk.core.ApiClient; import com.databricks.sdk.support.Generated; import com.databricks.sdk.support.Paginator; +import com.google.common.base.Strings; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -92,7 +93,7 @@ public Iterable list(ListStorageCredentialsRequest reques ListStorageCredentialsResponse::getStorageCredentials, response -> { String token = response.getNextPageToken(); - if (token == null) { + if (Strings.isNullOrEmpty(token)) { return null; } return request.setPageToken(token); diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/SystemSchemasAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/SystemSchemasAPI.java index 5ff7062a5..6c1881499 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/SystemSchemasAPI.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/SystemSchemasAPI.java @@ -4,6 +4,7 @@ import com.databricks.sdk.core.ApiClient; import com.databricks.sdk.support.Generated; import com.databricks.sdk.support.Paginator; +import com.google.common.base.Strings; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -73,7 +74,7 @@ public Iterable list(ListSystemSchemasRequest request) { ListSystemSchemasResponse::getSchemas, response -> { String token = response.getNextPageToken(); - if (token == null) { + if (Strings.isNullOrEmpty(token)) { return null; } return request.setPageToken(token); diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/TablesAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/TablesAPI.java index ab00a021b..bc171a74a 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/TablesAPI.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/TablesAPI.java @@ -4,6 +4,7 @@ import com.databricks.sdk.core.ApiClient; import com.databricks.sdk.support.Generated; import com.databricks.sdk.support.Paginator; +import com.google.common.base.Strings; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -105,7 +106,7 @@ public Iterable list(ListTablesRequest request) { ListTablesResponse::getTables, response -> { String token = response.getNextPageToken(); - if (token == null) { + if (Strings.isNullOrEmpty(token)) { return null; } return request.setPageToken(token); @@ -137,7 +138,7 @@ public Iterable listSummaries(ListSummariesRequest request) { ListTableSummariesResponse::getTables, response -> { String token = response.getNextPageToken(); - if (token == null) { + if (Strings.isNullOrEmpty(token)) { return null; } return request.setPageToken(token); diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/VolumesAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/VolumesAPI.java index f9d9d96dd..9b809e46d 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/VolumesAPI.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/VolumesAPI.java @@ -4,6 +4,7 @@ import com.databricks.sdk.core.ApiClient; import com.databricks.sdk.support.Generated; import com.databricks.sdk.support.Paginator; +import com.google.common.base.Strings; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -107,7 +108,7 @@ public Iterable list(ListVolumesRequest request) { ListVolumesResponseContent::getVolumes, response -> { String token = response.getNextPageToken(); - if (token == null) { + if (Strings.isNullOrEmpty(token)) { return null; } return request.setPageToken(token); diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/WorkspaceBindingsAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/WorkspaceBindingsAPI.java index 71a52715d..b00dd518d 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/WorkspaceBindingsAPI.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/WorkspaceBindingsAPI.java @@ -4,6 +4,7 @@ import com.databricks.sdk.core.ApiClient; import com.databricks.sdk.support.Generated; import com.databricks.sdk.support.Paginator; +import com.google.common.base.Strings; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -74,7 +75,7 @@ public Iterable getBindings(GetBindingsRequest request) { WorkspaceBindingsResponse::getBindings, response -> { String token = response.getNextPageToken(); - if (token == null) { + if (Strings.isNullOrEmpty(token)) { return null; } return request.setPageToken(token); diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/compute/ClustersAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/compute/ClustersAPI.java index ab3fbae39..744412083 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/compute/ClustersAPI.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/compute/ClustersAPI.java @@ -6,6 +6,7 @@ import com.databricks.sdk.support.Generated; import com.databricks.sdk.support.Paginator; import com.databricks.sdk.support.Wait; +import com.google.common.base.Strings; import java.time.Duration; import java.util.Arrays; import java.util.concurrent.TimeoutException; @@ -291,7 +292,7 @@ public Iterable list(ListClustersRequest request) { ListClustersResponse::getClusters, response -> { String token = response.getNextPageToken(); - if (token == null) { + if (Strings.isNullOrEmpty(token)) { return null; } return request.setPageToken(token); diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/compute/PolicyComplianceForClustersAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/compute/PolicyComplianceForClustersAPI.java index eba5bc734..6c11cddb6 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/compute/PolicyComplianceForClustersAPI.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/compute/PolicyComplianceForClustersAPI.java @@ -4,6 +4,7 @@ import com.databricks.sdk.core.ApiClient; import com.databricks.sdk.support.Generated; import com.databricks.sdk.support.Paginator; +import com.google.common.base.Strings; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -90,7 +91,7 @@ public Iterable listCompliance(ListClusterCompliancesRequest ListClusterCompliancesResponse::getClusters, response -> { String token = response.getNextPageToken(); - if (token == null) { + if (Strings.isNullOrEmpty(token)) { return null; } return request.setPageToken(token); diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/compute/PolicyFamiliesAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/compute/PolicyFamiliesAPI.java index 9854b9a3e..ff733c13a 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/compute/PolicyFamiliesAPI.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/compute/PolicyFamiliesAPI.java @@ -4,6 +4,7 @@ import com.databricks.sdk.core.ApiClient; import com.databricks.sdk.support.Generated; import com.databricks.sdk.support.Paginator; +import com.google.common.base.Strings; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -60,7 +61,7 @@ public Iterable list(ListPolicyFamiliesRequest request) { ListPolicyFamiliesResponse::getPolicyFamilies, response -> { String token = response.getNextPageToken(); - if (token == null) { + if (Strings.isNullOrEmpty(token)) { return null; } return request.setPageToken(token); diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/dashboards/LakeviewAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/dashboards/LakeviewAPI.java index da3753144..846b1bd11 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/dashboards/LakeviewAPI.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/dashboards/LakeviewAPI.java @@ -4,6 +4,7 @@ import com.databricks.sdk.core.ApiClient; import com.databricks.sdk.support.Generated; import com.databricks.sdk.support.Paginator; +import com.google.common.base.Strings; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -145,7 +146,7 @@ public Iterable list(ListDashboardsRequest request) { ListDashboardsResponse::getDashboards, response -> { String token = response.getNextPageToken(); - if (token == null) { + if (Strings.isNullOrEmpty(token)) { return null; } return request.setPageToken(token); @@ -164,7 +165,7 @@ public Iterable listSchedules(ListSchedulesRequest request) { ListSchedulesResponse::getSchedules, response -> { String token = response.getNextPageToken(); - if (token == null) { + if (Strings.isNullOrEmpty(token)) { return null; } return request.setPageToken(token); @@ -184,7 +185,7 @@ public Iterable listSubscriptions(ListSubscriptionsRequest request ListSubscriptionsResponse::getSubscriptions, response -> { String token = response.getNextPageToken(); - if (token == null) { + if (Strings.isNullOrEmpty(token)) { return null; } return request.setPageToken(token); diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/files/FilesAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/files/FilesAPI.java index d6492c3e9..29a4cf271 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/files/FilesAPI.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/files/FilesAPI.java @@ -4,6 +4,7 @@ import com.databricks.sdk.core.ApiClient; import com.databricks.sdk.support.Generated; import com.databricks.sdk.support.Paginator; +import com.google.common.base.Strings; import java.io.InputStream; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -151,7 +152,7 @@ public Iterable listDirectoryContents(ListDirectoryContentsReque ListDirectoryResponse::getContents, response -> { String token = response.getNextPageToken(); - if (token == null) { + if (Strings.isNullOrEmpty(token)) { return null; } return request.setPageToken(token); diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/JobsAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/JobsAPI.java index db8a03279..9c59bb040 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/JobsAPI.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/JobsAPI.java @@ -6,6 +6,7 @@ import com.databricks.sdk.support.Generated; import com.databricks.sdk.support.Paginator; import com.databricks.sdk.support.Wait; +import com.google.common.base.Strings; import java.time.Duration; import java.util.Arrays; import java.util.concurrent.TimeoutException; @@ -259,7 +260,7 @@ public Iterable list(ListJobsRequest request) { ListJobsResponse::getJobs, response -> { String token = response.getNextPageToken(); - if (token == null) { + if (Strings.isNullOrEmpty(token)) { return null; } return request.setPageToken(token); @@ -278,7 +279,7 @@ public Iterable listRuns(ListRunsRequest request) { ListRunsResponse::getRuns, response -> { String token = response.getNextPageToken(); - if (token == null) { + if (Strings.isNullOrEmpty(token)) { return null; } return request.setPageToken(token); diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/PolicyComplianceForJobsAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/PolicyComplianceForJobsAPI.java index a33e3907d..e89da99c6 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/PolicyComplianceForJobsAPI.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/jobs/PolicyComplianceForJobsAPI.java @@ -4,6 +4,7 @@ import com.databricks.sdk.core.ApiClient; import com.databricks.sdk.support.Generated; import com.databricks.sdk.support.Paginator; +import com.google.common.base.Strings; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -84,7 +85,7 @@ public Iterable listCompliance(ListJobComplianceRequest request) ListJobComplianceForPolicyResponse::getJobs, response -> { String token = response.getNextPageToken(); - if (token == null) { + if (Strings.isNullOrEmpty(token)) { return null; } return request.setPageToken(token); diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ConsumerFulfillmentsAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ConsumerFulfillmentsAPI.java index bfb94cfdc..2303414ea 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ConsumerFulfillmentsAPI.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ConsumerFulfillmentsAPI.java @@ -4,6 +4,7 @@ import com.databricks.sdk.core.ApiClient; import com.databricks.sdk.support.Generated; import com.databricks.sdk.support.Paginator; +import com.google.common.base.Strings; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -40,7 +41,7 @@ public Iterable get(GetListingContentMetadataRequest request) GetListingContentMetadataResponse::getSharedDataObjects, response -> { String token = response.getNextPageToken(); - if (token == null) { + if (Strings.isNullOrEmpty(token)) { return null; } return request.setPageToken(token); @@ -66,7 +67,7 @@ public Iterable list(ListFulfillmentsRequest request) { ListFulfillmentsResponse::getFulfillments, response -> { String token = response.getNextPageToken(); - if (token == null) { + if (Strings.isNullOrEmpty(token)) { return null; } return request.setPageToken(token); diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ConsumerInstallationsAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ConsumerInstallationsAPI.java index 4cb983d47..a0f0a6097 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ConsumerInstallationsAPI.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ConsumerInstallationsAPI.java @@ -4,6 +4,7 @@ import com.databricks.sdk.core.ApiClient; import com.databricks.sdk.support.Generated; import com.databricks.sdk.support.Paginator; +import com.google.common.base.Strings; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -65,7 +66,7 @@ public Iterable list(ListAllInstallationsRequest request) { ListAllInstallationsResponse::getInstallations, response -> { String token = response.getNextPageToken(); - if (token == null) { + if (Strings.isNullOrEmpty(token)) { return null; } return request.setPageToken(token); @@ -88,7 +89,7 @@ public Iterable listListingInstallations(ListInstallationsRe ListInstallationsResponse::getInstallations, response -> { String token = response.getNextPageToken(); - if (token == null) { + if (Strings.isNullOrEmpty(token)) { return null; } return request.setPageToken(token); diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ConsumerListingsAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ConsumerListingsAPI.java index ef7bd11aa..464a869e6 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ConsumerListingsAPI.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ConsumerListingsAPI.java @@ -4,6 +4,7 @@ import com.databricks.sdk.core.ApiClient; import com.databricks.sdk.support.Generated; import com.databricks.sdk.support.Paginator; +import com.google.common.base.Strings; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -61,7 +62,7 @@ public Iterable list(ListListingsRequest request) { ListListingsResponse::getListings, response -> { String token = response.getNextPageToken(); - if (token == null) { + if (Strings.isNullOrEmpty(token)) { return null; } return request.setPageToken(token); @@ -85,7 +86,7 @@ public Iterable search(SearchListingsRequest request) { SearchListingsResponse::getListings, response -> { String token = response.getNextPageToken(); - if (token == null) { + if (Strings.isNullOrEmpty(token)) { return null; } return request.setPageToken(token); diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ConsumerPersonalizationRequestsAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ConsumerPersonalizationRequestsAPI.java index a762f3e82..695cb49b3 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ConsumerPersonalizationRequestsAPI.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ConsumerPersonalizationRequestsAPI.java @@ -4,6 +4,7 @@ import com.databricks.sdk.core.ApiClient; import com.databricks.sdk.support.Generated; import com.databricks.sdk.support.Paginator; +import com.google.common.base.Strings; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -72,7 +73,7 @@ public Iterable list(ListAllPersonalizationRequestsReque ListAllPersonalizationRequestsResponse::getPersonalizationRequests, response -> { String token = response.getNextPageToken(); - if (token == null) { + if (Strings.isNullOrEmpty(token)) { return null; } return request.setPageToken(token); diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ConsumerProvidersAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ConsumerProvidersAPI.java index 0dbca45f0..31cae78c5 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ConsumerProvidersAPI.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ConsumerProvidersAPI.java @@ -4,6 +4,7 @@ import com.databricks.sdk.core.ApiClient; import com.databricks.sdk.support.Generated; import com.databricks.sdk.support.Paginator; +import com.google.common.base.Strings; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -58,7 +59,7 @@ public Iterable list(ListProvidersRequest request) { ListProvidersResponse::getProviders, response -> { String token = response.getNextPageToken(); - if (token == null) { + if (Strings.isNullOrEmpty(token)) { return null; } return request.setPageToken(token); diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ProviderExchangeFiltersAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ProviderExchangeFiltersAPI.java index bf1fe037a..aabab28d3 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ProviderExchangeFiltersAPI.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ProviderExchangeFiltersAPI.java @@ -4,6 +4,7 @@ import com.databricks.sdk.core.ApiClient; import com.databricks.sdk.support.Generated; import com.databricks.sdk.support.Paginator; +import com.google.common.base.Strings; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -66,7 +67,7 @@ public Iterable list(ListExchangeFiltersRequest request) { ListExchangeFiltersResponse::getFilters, response -> { String token = response.getNextPageToken(); - if (token == null) { + if (Strings.isNullOrEmpty(token)) { return null; } return request.setPageToken(token); diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ProviderExchangesAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ProviderExchangesAPI.java index 84954c14e..400c4499e 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ProviderExchangesAPI.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ProviderExchangesAPI.java @@ -4,6 +4,7 @@ import com.databricks.sdk.core.ApiClient; import com.databricks.sdk.support.Generated; import com.databricks.sdk.support.Paginator; +import com.google.common.base.Strings; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -104,7 +105,7 @@ public Iterable list(ListExchangesRequest request) { ListExchangesResponse::getExchanges, response -> { String token = response.getNextPageToken(); - if (token == null) { + if (Strings.isNullOrEmpty(token)) { return null; } return request.setPageToken(token); @@ -127,7 +128,7 @@ public Iterable listExchangesForListing(ListExchangesForListing ListExchangesForListingResponse::getExchangeListing, response -> { String token = response.getNextPageToken(); - if (token == null) { + if (Strings.isNullOrEmpty(token)) { return null; } return request.setPageToken(token); @@ -150,7 +151,7 @@ public Iterable listListingsForExchange(ListListingsForExchange ListListingsForExchangeResponse::getExchangeListings, response -> { String token = response.getNextPageToken(); - if (token == null) { + if (Strings.isNullOrEmpty(token)) { return null; } return request.setPageToken(token); diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ProviderFilesAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ProviderFilesAPI.java index cf27c77ec..06f91d928 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ProviderFilesAPI.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ProviderFilesAPI.java @@ -4,6 +4,7 @@ import com.databricks.sdk.core.ApiClient; import com.databricks.sdk.support.Generated; import com.databricks.sdk.support.Paginator; +import com.google.common.base.Strings; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -87,7 +88,7 @@ public Iterable list(ListFilesRequest request) { ListFilesResponse::getFileInfos, response -> { String token = response.getNextPageToken(); - if (token == null) { + if (Strings.isNullOrEmpty(token)) { return null; } return request.setPageToken(token); diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ProviderListingsAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ProviderListingsAPI.java index 936d78d47..2b97dcfab 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ProviderListingsAPI.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ProviderListingsAPI.java @@ -4,6 +4,7 @@ import com.databricks.sdk.core.ApiClient; import com.databricks.sdk.support.Generated; import com.databricks.sdk.support.Paginator; +import com.google.common.base.Strings; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -78,7 +79,7 @@ public Iterable list(GetListingsRequest request) { GetListingsResponse::getListings, response -> { String token = response.getNextPageToken(); - if (token == null) { + if (Strings.isNullOrEmpty(token)) { return null; } return request.setPageToken(token); diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ProviderPersonalizationRequestsAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ProviderPersonalizationRequestsAPI.java index d4553b717..be6f11c1c 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ProviderPersonalizationRequestsAPI.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ProviderPersonalizationRequestsAPI.java @@ -4,6 +4,7 @@ import com.databricks.sdk.core.ApiClient; import com.databricks.sdk.support.Generated; import com.databricks.sdk.support.Paginator; +import com.google.common.base.Strings; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -41,7 +42,7 @@ public Iterable list(ListAllPersonalizationRequestsReque ListAllPersonalizationRequestsResponse::getPersonalizationRequests, response -> { String token = response.getNextPageToken(); - if (token == null) { + if (Strings.isNullOrEmpty(token)) { return null; } return request.setPageToken(token); diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ProviderProvidersAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ProviderProvidersAPI.java index a76c6c3b9..acc8b42d2 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ProviderProvidersAPI.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/marketplace/ProviderProvidersAPI.java @@ -4,6 +4,7 @@ import com.databricks.sdk.core.ApiClient; import com.databricks.sdk.support.Generated; import com.databricks.sdk.support.Paginator; +import com.google.common.base.Strings; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -75,7 +76,7 @@ public Iterable list(ListProvidersRequest request) { ListProvidersResponse::getProviders, response -> { String token = response.getNextPageToken(); - if (token == null) { + if (Strings.isNullOrEmpty(token)) { return null; } return request.setPageToken(token); diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/ml/ExperimentsAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/ml/ExperimentsAPI.java index 7d9640a1a..935df322b 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/ml/ExperimentsAPI.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/ml/ExperimentsAPI.java @@ -4,6 +4,7 @@ import com.databricks.sdk.core.ApiClient; import com.databricks.sdk.support.Generated; import com.databricks.sdk.support.Paginator; +import com.google.common.base.Strings; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -166,7 +167,7 @@ public Iterable getHistory(GetHistoryRequest request) { GetMetricHistoryResponse::getMetrics, response -> { String token = response.getNextPageToken(); - if (token == null) { + if (Strings.isNullOrEmpty(token)) { return null; } return request.setPageToken(token); @@ -235,7 +236,7 @@ public Iterable listArtifacts(ListArtifactsRequest request) { ListArtifactsResponse::getFiles, response -> { String token = response.getNextPageToken(); - if (token == null) { + if (Strings.isNullOrEmpty(token)) { return null; } return request.setPageToken(token); @@ -254,7 +255,7 @@ public Iterable listExperiments(ListExperimentsRequest request) { ListExperimentsResponse::getExperiments, response -> { String token = response.getNextPageToken(); - if (token == null) { + if (Strings.isNullOrEmpty(token)) { return null; } return request.setPageToken(token); @@ -414,7 +415,7 @@ public Iterable searchExperiments(SearchExperiments request) { SearchExperimentsResponse::getExperiments, response -> { String token = response.getNextPageToken(); - if (token == null) { + if (Strings.isNullOrEmpty(token)) { return null; } return request.setPageToken(token); @@ -435,7 +436,7 @@ public Iterable searchRuns(SearchRuns request) { SearchRunsResponse::getRuns, response -> { String token = response.getNextPageToken(); - if (token == null) { + if (Strings.isNullOrEmpty(token)) { return null; } return request.setPageToken(token); diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/ml/ModelRegistryAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/ml/ModelRegistryAPI.java index e034e00dd..927def9b4 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/ml/ModelRegistryAPI.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/ml/ModelRegistryAPI.java @@ -4,6 +4,7 @@ import com.databricks.sdk.core.ApiClient; import com.databricks.sdk.support.Generated; import com.databricks.sdk.support.Paginator; +import com.google.common.base.Strings; import java.util.Collection; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -327,7 +328,7 @@ public Iterable listModels(ListModelsRequest request) { ListModelsResponse::getRegisteredModels, response -> { String token = response.getNextPageToken(); - if (token == null) { + if (Strings.isNullOrEmpty(token)) { return null; } return request.setPageToken(token); @@ -366,7 +367,7 @@ public Iterable listWebhooks(ListWebhooksRequest request) { ListRegistryWebhooks::getWebhooks, response -> { String token = response.getNextPageToken(); - if (token == null) { + if (Strings.isNullOrEmpty(token)) { return null; } return request.setPageToken(token); @@ -413,7 +414,7 @@ public Iterable searchModelVersions(SearchModelVersionsRequest req SearchModelVersionsResponse::getModelVersions, response -> { String token = response.getNextPageToken(); - if (token == null) { + if (Strings.isNullOrEmpty(token)) { return null; } return request.setPageToken(token); @@ -432,7 +433,7 @@ public Iterable searchModels(SearchModelsRequest request) { SearchModelsResponse::getRegisteredModels, response -> { String token = response.getNextPageToken(); - if (token == null) { + if (Strings.isNullOrEmpty(token)) { return null; } return request.setPageToken(token); diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/oauth2/CustomAppIntegrationAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/oauth2/CustomAppIntegrationAPI.java index 4a5ddaa92..f2ead3805 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/oauth2/CustomAppIntegrationAPI.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/oauth2/CustomAppIntegrationAPI.java @@ -4,6 +4,7 @@ import com.databricks.sdk.core.ApiClient; import com.databricks.sdk.support.Generated; import com.databricks.sdk.support.Paginator; +import com.google.common.base.Strings; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -77,7 +78,7 @@ public Iterable list(ListCustomAppIntegrationsReq GetCustomAppIntegrationsOutput::getApps, response -> { String token = response.getNextPageToken(); - if (token == null) { + if (Strings.isNullOrEmpty(token)) { return null; } return request.setPageToken(token); diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/oauth2/OAuthPublishedAppsAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/oauth2/OAuthPublishedAppsAPI.java index ebc702a54..9e08e79a4 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/oauth2/OAuthPublishedAppsAPI.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/oauth2/OAuthPublishedAppsAPI.java @@ -4,6 +4,7 @@ import com.databricks.sdk.core.ApiClient; import com.databricks.sdk.support.Generated; import com.databricks.sdk.support.Paginator; +import com.google.common.base.Strings; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -40,7 +41,7 @@ public Iterable list(ListOAuthPublishedAppsRequest request) GetPublishedAppsOutput::getApps, response -> { String token = response.getNextPageToken(); - if (token == null) { + if (Strings.isNullOrEmpty(token)) { return null; } return request.setPageToken(token); diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/oauth2/PublishedAppIntegrationAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/oauth2/PublishedAppIntegrationAPI.java index c90911b78..118c93d08 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/oauth2/PublishedAppIntegrationAPI.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/oauth2/PublishedAppIntegrationAPI.java @@ -4,6 +4,7 @@ import com.databricks.sdk.core.ApiClient; import com.databricks.sdk.support.Generated; import com.databricks.sdk.support.Paginator; +import com.google.common.base.Strings; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -80,7 +81,7 @@ public Iterable list( GetPublishedAppIntegrationsOutput::getApps, response -> { String token = response.getNextPageToken(); - if (token == null) { + if (Strings.isNullOrEmpty(token)) { return null; } return request.setPageToken(token); diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/pipelines/PipelinesAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/pipelines/PipelinesAPI.java index 31a7bc569..0a18b8509 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/pipelines/PipelinesAPI.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/pipelines/PipelinesAPI.java @@ -6,6 +6,7 @@ import com.databricks.sdk.support.Generated; import com.databricks.sdk.support.Paginator; import com.databricks.sdk.support.Wait; +import com.google.common.base.Strings; import java.time.Duration; import java.util.Arrays; import java.util.concurrent.TimeoutException; @@ -223,7 +224,7 @@ public Iterable listPipelineEvents(ListPipelineEventsRequest requ ListPipelineEventsResponse::getEvents, response -> { String token = response.getNextPageToken(); - if (token == null) { + if (Strings.isNullOrEmpty(token)) { return null; } return request.setPageToken(token); @@ -242,7 +243,7 @@ public Iterable listPipelines(ListPipelinesRequest request) { ListPipelinesResponse::getStatuses, response -> { String token = response.getNextPageToken(); - if (token == null) { + if (Strings.isNullOrEmpty(token)) { return null; } return request.setPageToken(token); diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/NetworkConnectivityAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/NetworkConnectivityAPI.java index e039d64d4..6f3a219b2 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/NetworkConnectivityAPI.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/NetworkConnectivityAPI.java @@ -4,6 +4,7 @@ import com.databricks.sdk.core.ApiClient; import com.databricks.sdk.support.Generated; import com.databricks.sdk.support.Paginator; +import com.google.common.base.Strings; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -154,7 +155,7 @@ public Iterable listNetworkConnectivityConfigu ListNetworkConnectivityConfigurationsResponse::getItems, response -> { String token = response.getNextPageToken(); - if (token == null) { + if (Strings.isNullOrEmpty(token)) { return null; } return request.setPageToken(token); @@ -181,7 +182,7 @@ public Iterable listPrivateEndpointRules( ListNccAzurePrivateEndpointRulesResponse::getItems, response -> { String token = response.getNextPageToken(); - if (token == null) { + if (Strings.isNullOrEmpty(token)) { return null; } return request.setPageToken(token); diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/NotificationDestinationsAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/NotificationDestinationsAPI.java index 0d8a87350..98e51b71d 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/NotificationDestinationsAPI.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/settings/NotificationDestinationsAPI.java @@ -4,6 +4,7 @@ import com.databricks.sdk.core.ApiClient; import com.databricks.sdk.support.Generated; import com.databricks.sdk.support.Paginator; +import com.google.common.base.Strings; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -77,7 +78,7 @@ public Iterable list( ListNotificationDestinationsResponse::getResults, response -> { String token = response.getNextPageToken(); - if (token == null) { + if (Strings.isNullOrEmpty(token)) { return null; } return request.setPageToken(token); diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/CleanRoomsAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/CleanRoomsAPI.java index 582453648..da4737736 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/CleanRoomsAPI.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/CleanRoomsAPI.java @@ -4,6 +4,7 @@ import com.databricks.sdk.core.ApiClient; import com.databricks.sdk.support.Generated; import com.databricks.sdk.support.Paginator; +import com.google.common.base.Strings; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -87,7 +88,7 @@ public Iterable list(ListCleanRoomsRequest request) { ListCleanRoomsResponse::getCleanRooms, response -> { String token = response.getNextPageToken(); - if (token == null) { + if (Strings.isNullOrEmpty(token)) { return null; } return request.setPageToken(token); diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/ProvidersAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/ProvidersAPI.java index 0adbfb15c..2aee7b363 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/ProvidersAPI.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/ProvidersAPI.java @@ -4,6 +4,7 @@ import com.databricks.sdk.core.ApiClient; import com.databricks.sdk.support.Generated; import com.databricks.sdk.support.Paginator; +import com.google.common.base.Strings; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -83,7 +84,7 @@ public Iterable list(ListProvidersRequest request) { ListProvidersResponse::getProviders, response -> { String token = response.getNextPageToken(); - if (token == null) { + if (Strings.isNullOrEmpty(token)) { return null; } return request.setPageToken(token); diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/RecipientsAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/RecipientsAPI.java index 98a185f31..82ee3491a 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/RecipientsAPI.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/RecipientsAPI.java @@ -4,6 +4,7 @@ import com.databricks.sdk.core.ApiClient; import com.databricks.sdk.support.Generated; import com.databricks.sdk.support.Paginator; +import com.google.common.base.Strings; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -97,7 +98,7 @@ public Iterable list(ListRecipientsRequest request) { ListRecipientsResponse::getRecipients, response -> { String token = response.getNextPageToken(); - if (token == null) { + if (Strings.isNullOrEmpty(token)) { return null; } return request.setPageToken(token); diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/SharesAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/SharesAPI.java index f555901ce..631eec147 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/SharesAPI.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sharing/SharesAPI.java @@ -4,6 +4,7 @@ import com.databricks.sdk.core.ApiClient; import com.databricks.sdk.support.Generated; import com.databricks.sdk.support.Paginator; +import com.google.common.base.Strings; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -85,7 +86,7 @@ public Iterable list(ListSharesRequest request) { ListSharesResponse::getShares, response -> { String token = response.getNextPageToken(); - if (token == null) { + if (Strings.isNullOrEmpty(token)) { return null; } return request.setPageToken(token); diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/AlertsAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/AlertsAPI.java index d09b565e8..93aa0ac4d 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/AlertsAPI.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/AlertsAPI.java @@ -4,6 +4,7 @@ import com.databricks.sdk.core.ApiClient; import com.databricks.sdk.support.Generated; import com.databricks.sdk.support.Paginator; +import com.google.common.base.Strings; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -80,7 +81,7 @@ public Iterable list(ListAlertsRequest request) { ListAlertsResponse::getResults, response -> { String token = response.getNextPageToken(); - if (token == null) { + if (Strings.isNullOrEmpty(token)) { return null; } return request.setPageToken(token); diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/QueriesAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/QueriesAPI.java index f319bcd6e..49a9bd229 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/QueriesAPI.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/QueriesAPI.java @@ -4,6 +4,7 @@ import com.databricks.sdk.core.ApiClient; import com.databricks.sdk.support.Generated; import com.databricks.sdk.support.Paginator; +import com.google.common.base.Strings; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -80,7 +81,7 @@ public Iterable list(ListQueriesRequest request) ListQueryObjectsResponse::getResults, response -> { String token = response.getNextPageToken(); - if (token == null) { + if (Strings.isNullOrEmpty(token)) { return null; } return request.setPageToken(token); @@ -103,7 +104,7 @@ public Iterable listVisualizations(ListVisualizationsForQueryRequ ListVisualizationsForQueryResponse::getResults, response -> { String token = response.getNextPageToken(); - if (token == null) { + if (Strings.isNullOrEmpty(token)) { return null; } return request.setPageToken(token); diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/vectorsearch/VectorSearchEndpointsAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/vectorsearch/VectorSearchEndpointsAPI.java index 2f77789b6..e8dc969aa 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/vectorsearch/VectorSearchEndpointsAPI.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/vectorsearch/VectorSearchEndpointsAPI.java @@ -6,6 +6,7 @@ import com.databricks.sdk.support.Generated; import com.databricks.sdk.support.Paginator; import com.databricks.sdk.support.Wait; +import com.google.common.base.Strings; import java.time.Duration; import java.util.Arrays; import java.util.concurrent.TimeoutException; @@ -122,7 +123,7 @@ public Iterable listEndpoints(ListEndpointsRequest request) { ListEndpointResponse::getEndpoints, response -> { String token = response.getNextPageToken(); - if (token == null) { + if (Strings.isNullOrEmpty(token)) { return null; } return request.setPageToken(token); diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/vectorsearch/VectorSearchIndexesAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/vectorsearch/VectorSearchIndexesAPI.java index 0217d992f..d0b6b284f 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/vectorsearch/VectorSearchIndexesAPI.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/vectorsearch/VectorSearchIndexesAPI.java @@ -4,6 +4,7 @@ import com.databricks.sdk.core.ApiClient; import com.databricks.sdk.support.Generated; import com.databricks.sdk.support.Paginator; +import com.google.common.base.Strings; import java.util.Collection; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -110,7 +111,7 @@ public Iterable listIndexes(ListIndexesRequest request) { ListVectorIndexesResponse::getVectorIndexes, response -> { String token = response.getNextPageToken(); - if (token == null) { + if (Strings.isNullOrEmpty(token)) { return null; } return request.setPageToken(token); diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/workspace/ReposAPI.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/workspace/ReposAPI.java index 568ca8777..4a39cc6f7 100755 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/workspace/ReposAPI.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/workspace/ReposAPI.java @@ -4,6 +4,7 @@ import com.databricks.sdk.core.ApiClient; import com.databricks.sdk.support.Generated; import com.databricks.sdk.support.Paginator; +import com.google.common.base.Strings; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -116,7 +117,7 @@ public Iterable list(ListReposRequest request) { ListReposResponse::getRepos, response -> { String token = response.getNextPageToken(); - if (token == null) { + if (Strings.isNullOrEmpty(token)) { return null; } return request.setNextPageToken(token);