From 17668c7f6249fe706ea5ffcc602d33f562ccfdde Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Wed, 16 Sep 2015 10:39:55 +0200 Subject: [PATCH] =?utf8?q?Minor=20fixes:=20-=20need=20to=20name=20this=20"?= =?utf8?q?gender",=20else=20a=20warning=20is=20issued=20-=20ignored=20for?= =?utf8?q?=20internationalization=20Signed-off-by:Roland=20H=C3=A4der=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../beans/checkout/CheckoutWebBean.java | 12 ++++++------ .../templates/generic/gender_selection_box.tpl | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/java/org/mxchange/pizzaapplication/beans/checkout/CheckoutWebBean.java b/src/java/org/mxchange/pizzaapplication/beans/checkout/CheckoutWebBean.java index 21d2738f..28808ea1 100644 --- a/src/java/org/mxchange/pizzaapplication/beans/checkout/CheckoutWebBean.java +++ b/src/java/org/mxchange/pizzaapplication/beans/checkout/CheckoutWebBean.java @@ -149,16 +149,16 @@ public class CheckoutWebBean extends BaseFrameworkBean implements CheckoutWebCon // Is the bean set? if (this.basketController != null) { // Abort here - throw new NullPointerException("basketController is null"); + throw new NullPointerException("basketController is null"); //NOI18N } // Are at least the required fields set? if (!this.isRequiredPersonalDataSet()) { // Not set, should not happen - return "checkout2"; + return "checkout2"; //NOI18N } else if (this.basketController.isEmpty()) { // Nothing to order - return "empty_basket"; + return "empty_basket"; //NOI18N } // Create customer instance @@ -181,14 +181,14 @@ public class CheckoutWebBean extends BaseFrameworkBean implements CheckoutWebCon } catch (final JMSException ex) { // TODO: Log exception? // Not working - return "jms_failed"; + return "jms_failed"; //NOI18N } // Clear basket this.basketController.clear(); // All fine - return "checkout_done"; + return "checkout_done"; //NOI18N } @Override @@ -353,7 +353,7 @@ public class CheckoutWebBean extends BaseFrameworkBean implements CheckoutWebCon */ private Customer createCustomer () { // Required personal data must be set - assert (this.isRequiredPersonalDataSet()) : "not all personal data is set"; + assert (this.isRequiredPersonalDataSet()) : "not all personal data is set"; //NOI18N // Create new customer instance Customer customer = new ShopCustomer(); diff --git a/web/WEB-INF/templates/generic/gender_selection_box.tpl b/web/WEB-INF/templates/generic/gender_selection_box.tpl index 84d66b9a..2a5dd7dc 100644 --- a/web/WEB-INF/templates/generic/gender_selection_box.tpl +++ b/web/WEB-INF/templates/generic/gender_selection_box.tpl @@ -5,7 +5,7 @@ xmlns:h="http://java.sun.com/jsf/html" xmlns:ui="http://java.sun.com/jsf/facelets"> - + -- 2.39.5