svn commit: r812319 - /ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/SimpleMethod.java

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

svn commit: r812319 - /ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/SimpleMethod.java

doogie-3
Author: doogie
Date: Tue Sep  8 02:00:55 2009
New Revision: 812319

URL: http://svn.apache.org/viewvc?rev=812319&view=rev
Log:
Fix a generics warning.

Modified:
    ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/SimpleMethod.java

Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/SimpleMethod.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/SimpleMethod.java?rev=812319&r1=812318&r2=812319&view=diff
==============================================================================
--- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/SimpleMethod.java (original)
+++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/SimpleMethod.java Tue Sep  8 02:00:55 2009
@@ -94,7 +94,7 @@
     private static final Method methodOperationExecMethod;
     static {
         Map<String, MethodOperation.Factory<MethodOperation>> mapFactories = new HashMap<String, MethodOperation.Factory<MethodOperation>>();
-        Iterator<MethodOperation.Factory> it = ServiceRegistry.lookupProviders(MethodOperation.Factory.class, SimpleMethod.class.getClassLoader());
+        Iterator<MethodOperation.Factory<MethodOperation>> it = UtilGenerics.cast(ServiceRegistry.lookupProviders(MethodOperation.Factory.class, SimpleMethod.class.getClassLoader()));
         while (it.hasNext()) {
             MethodOperation.Factory<MethodOperation> factory = it.next();
             mapFactories.put(factory.getName(), factory);