More checkstyle improvements on Offer components

This commit is contained in:
Leonie Eitze
2023-06-26 12:55:52 +02:00
parent e3377c7b59
commit 6cd6b779a6
3 changed files with 21 additions and 21 deletions

View File

@@ -7,7 +7,7 @@ import de.rwu.easydrop.model.Offer;
*
* @since 0.2.0
*/
public class OfferValidator {
public final class OfferValidator {
/**
* Private constructor to prevent unwanted instantiation.
*
@@ -21,7 +21,7 @@ public class OfferValidator {
*
* @param offer the Offer
*/
public static void validate(final Offer offer) {}
public static void validate(final Offer offer) { }
}

View File

@@ -22,7 +22,7 @@ public class OfferWriter {
/**
* Validates and saves product to persistence.
*
* @param product
* @param offer
*/
public void writeOfferToPersistence(final Offer offer) {
OfferValidator.validate(offer);