From 6a2276b2ba35aa0ae9774dd77b8b18f378bae8cf Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Tue, 20 Mar 2018 00:45:21 +0100 Subject: [PATCH] Continued: - moved Customers utility class to same package as model class is MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Roland Häder --- .../mxchange/jcustomercore/model/customer/ContactCustomer.java | 2 +- .../jcustomercore/{utils => model/customer}/Customers.java | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) rename src/org/mxchange/jcustomercore/{utils => model/customer}/Customers.java (98%) diff --git a/src/org/mxchange/jcustomercore/model/customer/ContactCustomer.java b/src/org/mxchange/jcustomercore/model/customer/ContactCustomer.java index 840141b..53a04c4 100644 --- a/src/org/mxchange/jcustomercore/model/customer/ContactCustomer.java +++ b/src/org/mxchange/jcustomercore/model/customer/ContactCustomer.java @@ -150,7 +150,7 @@ public class ContactCustomer implements Customer { @Override public int compareTo (final Customer customer) { - // For performance reasons + // Check parameter on null-reference and equality to this if (null == customer) { // Should not happen throw new NullPointerException("customer is null"); //NOI18N diff --git a/src/org/mxchange/jcustomercore/utils/Customers.java b/src/org/mxchange/jcustomercore/model/customer/Customers.java similarity index 98% rename from src/org/mxchange/jcustomercore/utils/Customers.java rename to src/org/mxchange/jcustomercore/model/customer/Customers.java index 866d871..236cdb6 100644 --- a/src/org/mxchange/jcustomercore/utils/Customers.java +++ b/src/org/mxchange/jcustomercore/model/customer/Customers.java @@ -14,14 +14,13 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -package org.mxchange.jcustomercore.utils; +package org.mxchange.jcustomercore.model.customer; import java.security.SecureRandom; import java.text.MessageFormat; import java.util.Objects; import java.util.Random; import org.apache.commons.lang3.StringUtils; -import org.mxchange.jcustomercore.model.customer.Customer; /** * Customer utilities -- 2.39.5