From 052693784cc2cbff14cdfb9c6b30c21c5c663ca5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Thu, 26 Apr 2018 22:54:23 +0200 Subject: [PATCH] Please cherry-pick: - made more local variables final (possible here) which gives the Java compiler hints to optimize the binary a bit more - always invoke super() until you have reach the most-super (highest class) then there is no need for it as java.lang.Object is then next MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Roland Häder --- .../model/mailer/PizzaEmailDeliveryMessageBean.java | 6 +++--- .../model/mailer/PizzaMailerSingletonBean.java | 5 +++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/java/org/mxchange/pizzaapplication/model/mailer/PizzaEmailDeliveryMessageBean.java b/src/java/org/mxchange/pizzaapplication/model/mailer/PizzaEmailDeliveryMessageBean.java index d25f4ce..db39cec 100644 --- a/src/java/org/mxchange/pizzaapplication/model/mailer/PizzaEmailDeliveryMessageBean.java +++ b/src/java/org/mxchange/pizzaapplication/model/mailer/PizzaEmailDeliveryMessageBean.java @@ -80,10 +80,10 @@ public class PizzaEmailDeliveryMessageBean extends BaseEnterpriseBean implements } // Securely cast it - ObjectMessage objectMessage = (ObjectMessage) message; + final ObjectMessage objectMessage = (ObjectMessage) message; // Init variable - Serializable serializable; + final Serializable serializable; try { // Get object from message @@ -107,7 +107,7 @@ public class PizzaEmailDeliveryMessageBean extends BaseEnterpriseBean implements } // Securely cast it - WrapableEmailDelivery wrapper = (WrapableEmailDelivery) serializable; + final WrapableEmailDelivery wrapper = (WrapableEmailDelivery) serializable; // Is all required set? if (wrapper.getLocale() == null) { diff --git a/src/java/org/mxchange/pizzaapplication/model/mailer/PizzaMailerSingletonBean.java b/src/java/org/mxchange/pizzaapplication/model/mailer/PizzaMailerSingletonBean.java index 5893643..ca6a643 100644 --- a/src/java/org/mxchange/pizzaapplication/model/mailer/PizzaMailerSingletonBean.java +++ b/src/java/org/mxchange/pizzaapplication/model/mailer/PizzaMailerSingletonBean.java @@ -46,7 +46,7 @@ public class PizzaMailerSingletonBean extends BaseMailerBean implements Delivera /** * Configuration file */ - private final String configFile = "org.mxchange.jmailer.config"; //NOI18N//NOI18N + private final String configFile = "org.mxchange.jmailer.config"; //NOI18N /** * Email session @@ -56,9 +56,10 @@ public class PizzaMailerSingletonBean extends BaseMailerBean implements Delivera /** * Default constructor - *

*/ public PizzaMailerSingletonBean () { + // Invoke super constructor + super(); } /** -- 2.39.5