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

@@ -13,35 +13,35 @@ import lombok.Data;
@Data
public class Offer {
/*
* The product that our software buys
/**
* The product that our software buys.
*/
Product sourceProduct;
private Product sourceProduct;
/*
* The product that our software sells
/**
* The product that our software sells.
*/
Product saleProduct;
private Product saleProduct;
/*
* Date of the creation of the offer
/**
* Date of the creation of the offer.
* NOTE: Use Timestamp? https://docs.oracle.com/javase/8/docs/api/java/sql/Timestamp.html
*/
Date creationDate;
private Date creationDate;
/*
* Date of last update of the offer on the destination website (API)
/**
* Date of last update of the offer on the destination website (API).
*/
Date upDate;
private Date upDate;
/*
* Date of last check if offer is still valid
/**
* Date of last check if offer is still valid.
*/
Date checkDate;
private Date checkDate;
/*
* ID of the offer
/**
* ID of the offer.
*/
String offerId;
private String offerId;
}

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.
*

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);