Author: doogie
Date: Wed Mar 3 22:13:25 2010
New Revision: 918729
URL:
http://svn.apache.org/viewvc?rev=918729&view=revLog:
Remove unnecessary cast when getting from genericDAOs cache.
Modified:
ofbiz/trunk/framework/entity/src/org/ofbiz/entity/datasource/GenericDAO.java
Modified: ofbiz/trunk/framework/entity/src/org/ofbiz/entity/datasource/GenericDAO.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/entity/src/org/ofbiz/entity/datasource/GenericDAO.java?rev=918729&r1=918728&r2=918729&view=diff==============================================================================
--- ofbiz/trunk/framework/entity/src/org/ofbiz/entity/datasource/GenericDAO.java (original)
+++ ofbiz/trunk/framework/entity/src/org/ofbiz/entity/datasource/GenericDAO.java Wed Mar 3 22:13:25 2010
@@ -76,11 +76,11 @@
private final DatasourceInfo datasourceInfo;
public static GenericDAO getGenericDAO(String helperName) {
- GenericDAO newGenericDAO = (GenericDAO) genericDAOs.get(helperName);
+ GenericDAO newGenericDAO = genericDAOs.get(helperName);
if (newGenericDAO == null) { // don't want to block here
synchronized (GenericDAO.class) {
- newGenericDAO = (GenericDAO) genericDAOs.get(helperName);
+ newGenericDAO = genericDAOs.get(helperName);
if (newGenericDAO == null) {
newGenericDAO = new GenericDAO(helperName);
genericDAOs.put(helperName, newGenericDAO);