SonarLint fixes

This commit is contained in:
Marvin Scham
2023-06-27 06:45:00 +02:00
parent d01c4d0b1d
commit 9927b8f959
16 changed files with 59 additions and 42 deletions

View File

@@ -71,7 +71,9 @@ public class CatalogueRetriever {
}
productCatalogues.add(newProductCatalogue);
LOGGER.info("\nLoaded Catalogue: \n" + newProductCatalogue.toString());
String catString = String.format(
"%nLoaded Catalogue: %n%s", newProductCatalogue.toString());
LOGGER.info(catString);
}
}
}

View File

@@ -94,9 +94,9 @@ public class ProductRetriever {
*/
public Product getProductFromWebshop(final Webshop shop, final String productIdentifier) {
switch (shop) {
case Amazon:
case AMAZON:
return getProductFromAmazon(productIdentifier);
case eBay:
case EBAY:
return getProductFromEbay(productIdentifier);
default:
return null;