Checkstyle fixes

This commit is contained in:
Marvin Scham
2023-05-23 07:29:55 +02:00
parent 4649b58859
commit 4a163f6c7e
15 changed files with 21 additions and 18 deletions

View File

@@ -12,7 +12,10 @@ import de.rwu.easydrop.util.ConfigUtil;
* @since 0.1.0
*/
public final class Main {
private static final Logger logger = LoggerFactory.getLogger(Main.class);
/**
* Logger for main process.
*/
private static final Logger LOGGER = LoggerFactory.getLogger(Main.class);
/**
* Prevents unwanted instantiation.
@@ -34,9 +37,9 @@ public final class Main {
AmazonProductDataSource amznSrc = new AmazonProductDataSource(amznBaseUrl, amznApiKey);
try {
testProduct = amznSrc.getProductDTOById("B096Y2TYKV").toString();
logger.info(testProduct);
LOGGER.info(testProduct);
} catch (IllegalArgumentException e) {
logger.error("Something went wrong :(", e);
LOGGER.error("Something went wrong :(", e);
}
}
}