IterateSectionWidget.renderWidgetString

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

IterateSectionWidget.renderWidgetString

Adam Heath-2
In framework/widget/src/org/ofbiz/widget/screen/IterateSectionWidget.java,
line 102, it checks to see if the object is a map.  If so, it gets the
entry set(which contains Map.Entry), then converts that to an
array(still of Map.Entry), then converts that to a list(still of
Map.Entry).  It then sets the boolean flag isEntrySet.

Later, on line 126, if isEntrySet is true(which it is for this
discussion), it casts the item to Map.

Has this code ever been tested?  Or am I reading it wrong?