Skip to content

Commit

Permalink
style fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jenschude committed Nov 4, 2022
1 parent 7a44027 commit c256625
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 15 deletions.
Expand Up @@ -3,7 +3,6 @@

import java.util.UUID;

import com.commercetools.api.client.ByProjectKeyRequestBuilder;
import com.commercetools.api.client.ProjectApiRoot;
import com.commercetools.api.defaultconfig.ApiRootBuilder;
import com.commercetools.api.defaultconfig.ServiceRegion;
Expand Down
Expand Up @@ -7,7 +7,6 @@
import com.commercetools.api.client.*;
import com.commercetools.api.models.PagedQueryResourceRequest;

import com.commercetools.api.models.cart.CartPagedQueryResponse;
import io.sphere.sdk.cartdiscounts.queries.CartDiscountQuery;
import io.sphere.sdk.carts.queries.CartQuery;
import io.sphere.sdk.categories.queries.CategoryQuery;
Expand All @@ -26,7 +25,6 @@
import io.sphere.sdk.products.ProductProjectionType;
import io.sphere.sdk.products.queries.ProductProjectionQuery;
import io.sphere.sdk.products.queries.ProductQuery;
import io.sphere.sdk.productselections.queries.ProductSelectionQuery;
import io.sphere.sdk.producttypes.queries.ProductTypeQuery;
import io.sphere.sdk.queries.MetaModelQueryDsl;
import io.sphere.sdk.queries.QueryPredicate;
Expand Down Expand Up @@ -106,7 +104,8 @@ public ByProjectKeyCartDiscountsGet cartDiscount(final Supplier<CartDiscountQuer
}

@Deprecated
public <T> ByProjectKeyCustomObjectsGet customObject(Class<T> valueClass, final Function<CustomObjectQuery<T>, CustomObjectQuery<T>> queryDsl) {
public <T> ByProjectKeyCustomObjectsGet customObject(Class<T> valueClass,
final Function<CustomObjectQuery<T>, CustomObjectQuery<T>> queryDsl) {
return with(queryDsl.apply(CustomObjectQuery.of(valueClass)));
}

Expand Down Expand Up @@ -160,8 +159,7 @@ public ByProjectKeyProductProjectionsGet productProjections(
return with(queryDsl.apply(ProductProjectionQuery.ofCurrent()));
}

public ByProjectKeyProductProjectionsGet productProjections(
final Supplier<ProductProjectionQuery> queryDsl) {
public ByProjectKeyProductProjectionsGet productProjections(final Supplier<ProductProjectionQuery> queryDsl) {
return with(queryDsl.get());
}

Expand All @@ -180,8 +178,7 @@ public ByProjectKeyCustomerGroupsGet customerGroups(
return with(queryDsl.apply(CustomerGroupQuery.of()));
}

public ByProjectKeyCustomerGroupsGet customerGroups(
final Supplier<CustomerGroupQuery> queryDsl) {
public ByProjectKeyCustomerGroupsGet customerGroups(final Supplier<CustomerGroupQuery> queryDsl) {
return with(queryDsl.get());
}

Expand Down Expand Up @@ -230,8 +227,7 @@ public ByProjectKeyProductDiscountsGet productDiscounts(
return with(queryDsl.apply(ProductDiscountQuery.of()));
}

public ByProjectKeyProductDiscountsGet productDiscounts(
final Supplier<ProductDiscountQuery> queryDsl) {
public ByProjectKeyProductDiscountsGet productDiscounts(final Supplier<ProductDiscountQuery> queryDsl) {
return with(queryDsl.get());
}

Expand Down Expand Up @@ -260,8 +256,7 @@ public ByProjectKeyShippingMethodsGet shippingMethods(
return with(queryDsl.apply(ShippingMethodQuery.of()));
}

public ByProjectKeyShippingMethodsGet shippingMethods(
final Supplier<ShippingMethodQuery> queryDsl) {
public ByProjectKeyShippingMethodsGet shippingMethods(final Supplier<ShippingMethodQuery> queryDsl) {
return with(queryDsl.get());
}

Expand Down Expand Up @@ -602,9 +597,9 @@ public ByProjectKeyProductDiscountsGet with(final ProductDiscountQuery queryDsl)
return query(apiRoot.productDiscounts().get(), queryDsl);
}

// public ByProjectKeyProductSelectionsGet with(final ProductSelectionQuery queryDsl) {
// return query(apiRoot.productSelections().get(), queryDsl);
// }
// public ByProjectKeyProductSelectionsGet with(final ProductSelectionQuery queryDsl) {
// return query(apiRoot.productSelections().get(), queryDsl);
// }

public ByProjectKeyProductTypesGet with(final ProductTypeQuery queryDsl) {
return query(apiRoot.productTypes().get(), queryDsl);
Expand Down

0 comments on commit c256625

Please sign in to comment.