From 7542db7ea79e5d6a8885036293b2629a34947216 Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Sat, 20 Feb 2016 21:49:19 +0100 Subject: [PATCH] Some empty lines added/removed --- .../jshopcore/model/basket/AddableBasketItem.java | 4 ++-- .../jshopcore/model/customer/CustomerUtils.java | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/org/mxchange/jshopcore/model/basket/AddableBasketItem.java b/src/org/mxchange/jshopcore/model/basket/AddableBasketItem.java index d81bc8d..366783e 100644 --- a/src/org/mxchange/jshopcore/model/basket/AddableBasketItem.java +++ b/src/org/mxchange/jshopcore/model/basket/AddableBasketItem.java @@ -32,7 +32,7 @@ public interface AddableBasketItem extends Serializable { * @param object Other object to check */ @Override - boolean equals (final Object object); + boolean equals (final Object object); /** * Getter for item amount @@ -94,7 +94,7 @@ public interface AddableBasketItem extends Serializable { * Hash-code calculation */ @Override - int hashCode (); + int hashCode (); /** * Determines whether the item has a Product instance set diff --git a/src/org/mxchange/jshopcore/model/customer/CustomerUtils.java b/src/org/mxchange/jshopcore/model/customer/CustomerUtils.java index c3f2e1d..d763937 100644 --- a/src/org/mxchange/jshopcore/model/customer/CustomerUtils.java +++ b/src/org/mxchange/jshopcore/model/customer/CustomerUtils.java @@ -52,13 +52,13 @@ public class CustomerUtils extends BaseFrameworkSystem { // Not open throw new IllegalStateException("Entity manager is closed."); } - + // Generate fake order instance Orderable orderable = null; - + // Generate access keyy String accessKey = null; - + // Default is found boolean isFound = true; @@ -66,10 +66,10 @@ public class CustomerUtils extends BaseFrameworkSystem { while (isFound) { // Both number parts String randString = String.format("%s:%s:%s", Long.toHexString(Math.round(Math.random() * 1_000_000)), em, customer.getCustomerNumber()); - + // Generate access key, use SHA512 hashing and BASE64-encoding for strong key generation accessKey = Base64.encodeBase64String(Sha2Crypt.sha512Crypt(randString.getBytes()).getBytes()).substring(0, 100); - + // Try this try { // Get reference -- 2.39.5