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(),
"Amazon"));
} else if (offer.getSaleProduct().getDataOrigin().toLowerCase().equals("Amazon")) {
} else if (offer.getSaleProduct().getDataOrigin().toLowerCase().equals("amazon")) {
this.amazonSeller.sellProduct(new ProductDTO(
offer.getSaleProduct().getProductId(),
"eBay"));

View File

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