Author: mrisaliti
Date: Fri Mar 4 22:28:42 2011
New Revision: 1078182
URL:
http://svn.apache.org/viewvc?rev=1078182&view=revLog:
Remove some warning in ModelTreeRenderer (OFBIZ-4102)
Modified:
ofbiz/trunk/framework/widget/src/org/ofbiz/widget/tree/MacroTreeRenderer.java
Modified: ofbiz/trunk/framework/widget/src/org/ofbiz/widget/tree/MacroTreeRenderer.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/widget/src/org/ofbiz/widget/tree/MacroTreeRenderer.java?rev=1078182&r1=1078181&r2=1078182&view=diff==============================================================================
--- ofbiz/trunk/framework/widget/src/org/ofbiz/widget/tree/MacroTreeRenderer.java (original)
+++ ofbiz/trunk/framework/widget/src/org/ofbiz/widget/tree/MacroTreeRenderer.java Fri Mar 4 22:28:42 2011
@@ -155,8 +155,8 @@ public class MacroTreeRenderer implement
String entityId = null;
String entryName = node.getEntryName();
if (UtilValidate.isNotEmpty(entryName)) {
- Map map = (Map)context.get(entryName);
- entityId = (String)map.get(pkName);
+ Map<String, String> map = UtilGenerics.checkMap(context.get(entryName));
+ entityId = map.get(pkName);
} else {
entityId = (String) context.get(pkName);
}