From: Roland Häder Date: Thu, 20 Dec 2018 11:04:03 +0000 (+0100) Subject: Continued: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=a619e3beb71b2a3e853076972f3aa70e42bc0178;p=jproduct-core.git Continued: - removed parentCategory from constructor as per definition this is an optional field and these must always be set "manually" by invocing the setter Signed-off-by: Roland Häder --- diff --git a/src/org/mxchange/jproduct/model/category/ProductCategory.java b/src/org/mxchange/jproduct/model/category/ProductCategory.java index 0151345..2ec7c63 100644 --- a/src/org/mxchange/jproduct/model/category/ProductCategory.java +++ b/src/org/mxchange/jproduct/model/category/ProductCategory.java @@ -104,17 +104,15 @@ public class ProductCategory implements Category { * Constructor with all required fields *

* @param categoryI18nKey Category i18n key - * @param parentCategory Parent category * @param categoryShownInStatistics Whether this category is shown in any * statistics */ - public ProductCategory (final String categoryI18nKey, final Category parentCategory, final Boolean categoryShownInStatistics) { + public ProductCategory (final String categoryI18nKey, final Boolean categoryShownInStatistics) { // Call other constructor this(); // Set all here this.categoryI18nKey = categoryI18nKey; - this.parentCategory = parentCategory; this.categoryShownInStatistics = categoryShownInStatistics; }