]> git.mxchange.org Git - jfinancials-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>
Thu, 26 Apr 2018 20:54:23 +0000 (22:54 +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/jfinancials/model/mailer/FinancialsEmailDeliveryMessageBean.java
src/java/org/mxchange/jfinancials/model/mailer/FinancialsMailerSingletonBean.java

index 2c5042df7ac76f39425691e60f1b129559cf575f..104b7e58bfe12393a287487d5543f67079310b51 100644 (file)
@@ -80,10 +80,10 @@ public class FinancialsEmailDeliveryMessageBean extends BaseEnterpriseBean imple
                }
 
                // 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 FinancialsEmailDeliveryMessageBean extends BaseEnterpriseBean imple
                }
 
                // Securely cast it
-               WrapableEmailDelivery wrapper = (WrapableEmailDelivery) serializable;
+               final WrapableEmailDelivery wrapper = (WrapableEmailDelivery) serializable;
 
                // Is all required set?
                if (wrapper.getLocale() == null) {
index 39e97e452c99eb94c2c8a71526e65e70bf2bd25d..50a2c3b89b6c7d881127e3361dfca2da4eb97032 100644 (file)
@@ -56,9 +56,10 @@ public class FinancialsMailerSingletonBean extends BaseMailerBean implements Del
 
        /**
         * Default constructor
-        * <p>
         */
        public FinancialsMailerSingletonBean () {
+               // Invoke super constructor
+               super();
        }
 
        /**