ofbiz-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From doo...@apache.org
Subject svn commit: r918729 - /ofbiz/trunk/framework/entity/src/org/ofbiz/entity/datasource/GenericDAO.java
Date Wed, 03 Mar 2010 22:13:26 GMT
Author: doogie
Date: Wed Mar  3 22:13:25 2010
New Revision: 918729

URL: http://svn.apache.org/viewvc?rev=918729&view=rev
Log:
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);



Mime
View raw message