svn commit: r918729 - /ofbiz/trunk/framework/entity/src/org/ofbiz/entity/datasource/GenericDAO.java

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r918729 - /ofbiz/trunk/framework/entity/src/org/ofbiz/entity/datasource/GenericDAO.java

doogie-3
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);