Checkstyle improvements Product + OfferProvis

This commit is contained in:
Leonie Eitze
2023-06-26 15:33:51 +02:00
parent 6cd6b779a6
commit 37e4970fd6
2 changed files with 13 additions and 7 deletions

View File

@@ -47,7 +47,7 @@ public class OfferProvisioner {
offer.getSaleProduct().getProductId(), offer.getSaleProduct().getProductId(),
"Amazon")); "Amazon"));
} else if (offer.getSaleProduct().getDataOrigin().toLowerCase().equals("Amazon")) { } else if (offer.getSaleProduct().getDataOrigin().toLowerCase().equals("amazon")) {
this.amazonSeller.sellProduct(new ProductDTO( this.amazonSeller.sellProduct(new ProductDTO(
offer.getSaleProduct().getProductId(), offer.getSaleProduct().getProductId(),
"eBay")); "eBay"));

View File

@@ -10,11 +10,17 @@ import lombok.Data;
*/ */
@Data @Data
public class Product { public class Product {
/* /**
* Constants for data source/destination platforms * Constants for data source/destination platforms.
*/ */
public enum webshop{ public enum Webshop {
AMAZON, EBAY /**
* Amazon.
*/
AMAZON,
/**Ebay.
*/
EBAY
} }
/** /**