]> git.mxchange.org Git - jjobs-mailer-ejb.git/commitdiff
Please cherry-pick:
authorRoland Häder <roland@mxchange.org>
Thu, 26 Apr 2018 20:54:23 +0000 (22:54 +0200)
committerRoland Häder <roland@mxchange.org>
Fri, 19 Jul 2019 21:36:02 +0000 (23:36 +0200)
- 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 <roland@mxchange.org>
src/java/org/mxchange/jjobs/mailer/model/delivery/JobsEmailDeliveryMessageBean.java
src/java/org/mxchange/jjobs/mailer/model/delivery/JobsMailerSingletonBean.java

index d65227e10aa8ac3b9442dbecd5ac7d56eede3838..29e70a19ccefc259412751aa629bb5a31ada3bf7 100644 (file)
@@ -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) {
index 13cb728364b7ce2e325904ba69f3dd2368dbd5b3..a95f62c83a9427011c17365199c35391a9ea3b0d 100644 (file)
@@ -56,9 +56,10 @@ public class JobsMailerSingletonBean extends BaseMailerBean implements Deliverab
 
        /**
         * Default constructor
-        * <p>
         */
        public JobsMailerSingletonBean () {
+               // Invoke super constructor
+               super();
        }
 
        /**