You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by mr...@apache.org on 2011/02/08 22:59:07 UTC

svn commit: r1068599 - /ofbiz/trunk/framework/common/src/org/ofbiz/common/email/EmailServices.java

Author: mrisaliti
Date: Tue Feb  8 21:59:07 2011
New Revision: 1068599

URL: http://svn.apache.org/viewvc?rev=1068599&view=rev
Log:
Remove compilation warnings in EmailServices (OFBIZ-4102)

Modified:
    ofbiz/trunk/framework/common/src/org/ofbiz/common/email/EmailServices.java

Modified: ofbiz/trunk/framework/common/src/org/ofbiz/common/email/EmailServices.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/common/src/org/ofbiz/common/email/EmailServices.java?rev=1068599&r1=1068598&r2=1068599&view=diff
==============================================================================
--- ofbiz/trunk/framework/common/src/org/ofbiz/common/email/EmailServices.java (original)
+++ ofbiz/trunk/framework/common/src/org/ofbiz/common/email/EmailServices.java Tue Feb  8 21:59:07 2011
@@ -415,8 +415,8 @@ public class EmailServices {
         String bodyScreenUri = (String) serviceContext.remove("bodyScreenUri");
         String xslfoAttachScreenLocationParam = (String) serviceContext.remove("xslfoAttachScreenLocation");
         String attachmentNameParam = (String) serviceContext.remove("attachmentName");
-        List<String> xslfoAttachScreenLocationListParam = (List) serviceContext.remove("xslfoAttachScreenLocationList");
-        List<String> attachmentNameListParam = (List) serviceContext.remove("attachmentNameList");
+        List<String> xslfoAttachScreenLocationListParam = UtilGenerics.checkList(serviceContext.remove("xslfoAttachScreenLocationList"));
+        List<String> attachmentNameListParam = UtilGenerics.checkList(serviceContext.remove("attachmentNameList"));
         
         List<String> xslfoAttachScreenLocationList = FastList.newInstance();
         List<String> attachmentNameList = FastList.newInstance();