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/03/04 22:07:30 UTC

svn commit: r1078133 - /ofbiz/trunk/framework/common/src/org/ofbiz/common/CommonEvents.java

Author: mrisaliti
Date: Fri Mar  4 21:07:30 2011
New Revision: 1078133

URL: http://svn.apache.org/viewvc?rev=1078133&view=rev
Log:
Remove a warning in CommonEvents (OFBIZ-4102)

Modified:
    ofbiz/trunk/framework/common/src/org/ofbiz/common/CommonEvents.java

Modified: ofbiz/trunk/framework/common/src/org/ofbiz/common/CommonEvents.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/common/src/org/ofbiz/common/CommonEvents.java?rev=1078133&r1=1078132&r2=1078133&view=diff
==============================================================================
--- ofbiz/trunk/framework/common/src/org/ofbiz/common/CommonEvents.java (original)
+++ ofbiz/trunk/framework/common/src/org/ofbiz/common/CommonEvents.java Fri Mar  4 21:07:30 2011
@@ -314,10 +314,10 @@ public class CommonEvents {
                 }
 
                 // Iterate over the uiLabel List
-                Iterator jsonLabelIterator = labels.iterator();
+                Iterator<String> jsonLabelIterator = UtilGenerics.cast(labels.iterator());
                 JSONArray resourceLabelList = new JSONArray();
                 while(jsonLabelIterator.hasNext()) {
-                    String label = (String) jsonLabelIterator.next();
+                    String label = jsonLabelIterator.next();
                     String receivedLabel = UtilProperties.getMessage(resource, label, locale);
                     if (UtilValidate.isNotEmpty(receivedLabel)) {
                         resourceLabelList.add(receivedLabel);