]> git.mxchange.org Git - jcoreee.git/commitdiff
Cleanups:
authorRoland Häder <roland@mxchange.org>
Mon, 26 Jun 2017 22:29:59 +0000 (00:29 +0200)
committerRoland Häder <roland@mxchange.org>
Mon, 26 Jun 2017 22:29:59 +0000 (00:29 +0200)
- removed no longer used imports
- first method, then value is fine

Signed-off-by: Roland Häder <roland@mxchange.org>
src/org/mxchange/jcoreee/bean/BaseBean.java

index ef7f11ddeac432bf1ddde1b63cd0e7d47a471157..c6d4816f291f0ec71dbb3284c3d62f9253d60e76 100644 (file)
@@ -19,11 +19,7 @@ package org.mxchange.jcoreee.bean;
 import java.io.Serializable;
 import java.security.Principal;
 import java.text.MessageFormat;
-import java.util.Locale;
-import java.util.MissingResourceException;
-import java.util.ResourceBundle;
 import javax.faces.FacesException;
-import javax.faces.application.FacesMessage;
 import javax.faces.context.FacesContext;
 import javax.jms.Connection;
 import javax.jms.JMSException;
@@ -196,7 +192,7 @@ public abstract class BaseBean implements Serializable {
                if (null == message) {
                        // Throw NPE
                        throw new NullPointerException("message is null"); //NOI18N
-               } else if (null == this.getMessageProducer()) {
+               } else if (this.getMessageProducer() == null) {
                        // Throw NPE again
                        throw new NullPointerException("this.messageProvider is null"); //NOI18N
                }