Author: doogie
Date: Fri May 4 21:58:51 2012
New Revision: 1334218
URL:
http://svn.apache.org/viewvc?rev=1334218&view=revLog:
FEATURE: Make EntityCrypto final.
Modified:
ofbiz/trunk/framework/entity/src/org/ofbiz/entity/util/EntityCrypto.java
Modified: ofbiz/trunk/framework/entity/src/org/ofbiz/entity/util/EntityCrypto.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/entity/src/org/ofbiz/entity/util/EntityCrypto.java?rev=1334218&r1=1334217&r2=1334218&view=diff==============================================================================
--- ofbiz/trunk/framework/entity/src/org/ofbiz/entity/util/EntityCrypto.java (original)
+++ ofbiz/trunk/framework/entity/src/org/ofbiz/entity/util/EntityCrypto.java Fri May 4 21:58:51 2012
@@ -41,17 +41,15 @@ import org.ofbiz.entity.GenericValue;
import org.ofbiz.entity.transaction.GenericTransactionException;
import org.ofbiz.entity.transaction.TransactionUtil;
-public class EntityCrypto {
+public final class EntityCrypto {
public static final String module = EntityCrypto.class.getName();
- protected Delegator delegator = null;
- protected Map<String, SecretKey> keyMap = null;
+ protected final Delegator delegator;
+ protected final Map<String, SecretKey> keyMap = new HashMap<String, SecretKey>();
- protected EntityCrypto() { }
public EntityCrypto(Delegator delegator) {
this.delegator = delegator;
- this.keyMap = new HashMap<String, SecretKey>();
// check the key table and make sure there
// make sure there are some dummy keys