Author: mrisaliti
Date: Fri Mar 4 21:07:30 2011
New Revision: 1078133
URL:
http://svn.apache.org/viewvc?rev=1078133&view=revLog:
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);