svn commit: r941178 - /ofbiz/trunk/framework/widget/src/org/ofbiz/widget/menu/ModelMenu.java

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

svn commit: r941178 - /ofbiz/trunk/framework/widget/src/org/ofbiz/widget/menu/ModelMenu.java

lektran
Author: lektran
Date: Wed May  5 07:16:55 2010
New Revision: 941178

URL: http://svn.apache.org/viewvc?rev=941178&view=rev
Log:
Remove a couple of unnecessary casts

Modified:
    ofbiz/trunk/framework/widget/src/org/ofbiz/widget/menu/ModelMenu.java

Modified: ofbiz/trunk/framework/widget/src/org/ofbiz/widget/menu/ModelMenu.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/widget/src/org/ofbiz/widget/menu/ModelMenu.java?rev=941178&r1=941177&r2=941178&view=diff
==============================================================================
--- ofbiz/trunk/framework/widget/src/org/ofbiz/widget/menu/ModelMenu.java (original)
+++ ofbiz/trunk/framework/widget/src/org/ofbiz/widget/menu/ModelMenu.java Wed May  5 07:16:55 2010
@@ -258,7 +258,7 @@ public class ModelMenu extends ModelWidg
     public ModelMenuItem addUpdateMenuItem(ModelMenuItem modelMenuItem) {
 
             // not a conditional item, see if a named item exists in Map
-            ModelMenuItem existingMenuItem = (ModelMenuItem) this.menuItemMap.get(modelMenuItem.getName());
+            ModelMenuItem existingMenuItem = this.menuItemMap.get(modelMenuItem.getName());
             if (existingMenuItem != null) {
                 // does exist, update the item by doing a merge/override
                 existingMenuItem.mergeOverrideModelMenuItem(modelMenuItem);
@@ -272,7 +272,7 @@ public class ModelMenu extends ModelWidg
     }
 
     public ModelMenuItem getModelMenuItemByName(String name) {
-            ModelMenuItem existingMenuItem = (ModelMenuItem) this.menuItemMap.get(name);
+            ModelMenuItem existingMenuItem = this.menuItemMap.get(name);
             return existingMenuItem;
     }