From: Roland Haeder Date: Sat, 20 Feb 2016 20:49:19 +0000 (+0100) Subject: Some empty lines added/removed X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=7542db7ea79e5d6a8885036293b2629a34947216;p=jshop-core.git Some empty lines added/removed --- 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