From: Roland Häder Date: Thu, 26 Apr 2018 20:54:23 +0000 (+0200) Subject: Please cherry-pick: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=e66b2d57b893c0aca2b93460639688f4660e446f;p=jjobs-mailer-ejb.git 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 Signed-off-by: Roland Häder --- diff --git a/src/java/org/mxchange/jjobs/mailer/model/delivery/JobsEmailDeliveryMessageBean.java b/src/java/org/mxchange/jjobs/mailer/model/delivery/JobsEmailDeliveryMessageBean.java index d65227e..29e70a1 100644 --- a/src/java/org/mxchange/jjobs/mailer/model/delivery/JobsEmailDeliveryMessageBean.java +++ b/src/java/org/mxchange/jjobs/mailer/model/delivery/JobsEmailDeliveryMessageBean.java @@ -80,10 +80,10 @@ public class JobsEmailDeliveryMessageBean 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 JobsEmailDeliveryMessageBean 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/jjobs/mailer/model/delivery/JobsMailerSingletonBean.java b/src/java/org/mxchange/jjobs/mailer/model/delivery/JobsMailerSingletonBean.java index 13cb728..a95f62c 100644 --- a/src/java/org/mxchange/jjobs/mailer/model/delivery/JobsMailerSingletonBean.java +++ b/src/java/org/mxchange/jjobs/mailer/model/delivery/JobsMailerSingletonBean.java @@ -56,9 +56,10 @@ public class JobsMailerSingletonBean extends BaseMailerBean implements Deliverab /** * Default constructor - *

*/ public JobsMailerSingletonBean () { + // Invoke super constructor + super(); } /**