]> git.mxchange.org Git - addressbook-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>
Sat, 1 Feb 2020 03:00:17 +0000 (04:00 +0100)
- 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/addressbook/mailer/model/delivery/AddressbookEmailDeliveryMessageBean.java
src/java/org/mxchange/addressbook/mailer/model/delivery/AddressbookMailerSingletonBean.java

index 95d57bbdfe32616641ffed705173b821b3538039..8383a45ead151de65a5908dfc4522a94ba8f5e06 100644 (file)
@@ -80,10 +80,10 @@ public class AddressbookEmailDeliveryMessageBean extends BaseEnterpriseBean impl
                }
 
                // 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 AddressbookEmailDeliveryMessageBean extends BaseEnterpriseBean impl
                }
 
                // Securely cast it
-               WrapableEmailDelivery wrapper = (WrapableEmailDelivery) serializable;
+               final WrapableEmailDelivery wrapper = (WrapableEmailDelivery) serializable;
 
                // Is all required set?
                if (wrapper.getLocale() == null) {
index 38afa9cda777a13430e7dfca955477139fc39b14..81ecdbe6f4d21248c1dc2020458b07ec5a232e2c 100644 (file)
@@ -56,9 +56,10 @@ public class AddressbookMailerSingletonBean extends BaseMailerBean implements De
 
        /**
         * Default constructor
-        * <p>
         */
        public AddressbookMailerSingletonBean () {
+               // Invoke super constructor
+               super();
        }
 
        /**