From: Roland Häder Date: Mon, 26 Jun 2017 22:29:59 +0000 (+0200) Subject: Cleanups: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=2b5f50fa08d5fc2454fe4edcc0770de29dd95c21;p=jcore-utils.git Cleanups: - removed no longer used imports - first method, then value is fine Signed-off-by: Roland Häder --- diff --git a/src/org/mxchange/jcoreee/bean/BaseBean.java b/src/org/mxchange/jcoreee/bean/BaseBean.java index ef7f11d..c6d4816 100644 --- a/src/org/mxchange/jcoreee/bean/BaseBean.java +++ b/src/org/mxchange/jcoreee/bean/BaseBean.java @@ -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 }