Webshops refactoring + checkstyle
This commit is contained in:
@@ -8,6 +8,7 @@ import com.jayway.jsonpath.PathNotFoundException;
|
||||
import com.jayway.jsonpath.ReadContext;
|
||||
|
||||
import de.rwu.easydrop.api.dto.ProductDTO;
|
||||
import de.rwu.easydrop.model.Webshop;
|
||||
|
||||
/**
|
||||
* Interface to an eBay data source.
|
||||
@@ -18,7 +19,7 @@ public final class EbayItemDataSource extends AbstractDataSource {
|
||||
/**
|
||||
* Name of this data source.
|
||||
*/
|
||||
private static final String DATA_ORIGIN = "eBay";
|
||||
private static final Webshop DATA_ORIGIN = Webshop.eBay;
|
||||
/**
|
||||
* Base URL to the eBay data source.
|
||||
*/
|
||||
@@ -77,7 +78,7 @@ public final class EbayItemDataSource extends AbstractDataSource {
|
||||
}
|
||||
|
||||
@Override
|
||||
protected String getDataOrigin() {
|
||||
protected Webshop getDataOrigin() {
|
||||
return DATA_ORIGIN;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user