More checkstyle improvements on Offer components
This commit is contained in:
@@ -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) { }
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user