From 3774a83fa278c4e3f38feaf31d31c08571f403cc Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Fri, 4 Sep 2015 19:58:21 +0200 Subject: [PATCH] =?utf8?q?Got=20rid=20of=20empty=20class=20Signed-off-by:R?= =?utf8?q?oland=20H=C3=A4der=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../BasePizzaServiceSystem.java | 27 ------------------- .../application/PizzaServiceApplication.java | 10 +++---- 2 files changed, 5 insertions(+), 32 deletions(-) delete mode 100644 src/org/mxchange/pizzaapplication/BasePizzaServiceSystem.java diff --git a/src/org/mxchange/pizzaapplication/BasePizzaServiceSystem.java b/src/org/mxchange/pizzaapplication/BasePizzaServiceSystem.java deleted file mode 100644 index dfc3cfa..0000000 --- a/src/org/mxchange/pizzaapplication/BasePizzaServiceSystem.java +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Copyright (C) 2015 Roland Haeder - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ -package org.mxchange.pizzaapplication; - -import org.mxchange.jsfcore.BaseServletSystem; - -/** - * A general class for whole pizza application. - * - * @author Roland Haeder - */ -public class BasePizzaServiceSystem extends BaseServletSystem { -} diff --git a/src/org/mxchange/pizzaapplication/application/PizzaServiceApplication.java b/src/org/mxchange/pizzaapplication/application/PizzaServiceApplication.java index 3ae2009..fcc390e 100644 --- a/src/org/mxchange/pizzaapplication/application/PizzaServiceApplication.java +++ b/src/org/mxchange/pizzaapplication/application/PizzaServiceApplication.java @@ -22,19 +22,19 @@ import java.sql.SQLException; import java.text.MessageFormat; import java.util.Deque; import java.util.Iterator; +import org.mxchange.jcore.BaseFrameworkSystem; import org.mxchange.jshop.category.Category; import org.mxchange.jshop.exceptions.CategoryTitleAlreadyUsedException; import org.mxchange.jshop.exceptions.ProductTitleAlreadyUsedException; import org.mxchange.jshop.item.AddableBasketItem; import org.mxchange.jshop.product.Product; -import org.mxchange.pizzaapplication.BasePizzaServiceSystem; /** * Main application class * * @author Roland Haeder */ -public class PizzaServiceApplication extends BasePizzaServiceSystem implements PizzaApplication { +public class PizzaServiceApplication extends BaseFrameworkSystem implements PizzaApplication { /** * Default constructor */ @@ -121,7 +121,7 @@ public class PizzaServiceApplication extends BasePizzaServiceSystem implements P this.getLogger().trace("CALLED!"); //NOI18N // Ask frontend for a list of products - return (Iterator) this.productFrontend.getAvailableProductsIterator(); + return this.productFrontend.getAvailableProductsIterator(); } @Override @@ -131,7 +131,7 @@ public class PizzaServiceApplication extends BasePizzaServiceSystem implements P this.getLogger().trace("CALLED!"); //NOI18N // Ask frontend for a list of products - return (Iterator) this.productFrontend.getAllProductsIterator(); + return this.productFrontend.getAllProductsIterator(); } @Override @@ -141,7 +141,7 @@ public class PizzaServiceApplication extends BasePizzaServiceSystem implements P this.getLogger().trace("CALLED!"); //NOI18N // Ask frontend for a list of categories - return (Iterator) this.categoryFrontend.getAllCategoriesIterator(); + return this.categoryFrontend.getAllCategoriesIterator(); } /** -- 2.39.5