Commit 93eafe44 authored by Bill Lynch's avatar Bill Lynch Committed by bill

More dev - jdk 1.5 syntax


git-svn-id: http://svn.igniterealtime.org/svn/repos/messenger/trunk@341 b35dd754-fafc-0310-a699-88a17e54d16e
parent 6703f80b
......@@ -124,7 +124,7 @@ public class TabsTag extends BodyTagSupport {
pageID = pageInfo.getPageID();
}
// Get root items from the data model:
Collection items = AdminConsole.getItems();
Collection<AdminConsole.Item> items = AdminConsole.getItems();
if (items.size() > 0) {
JspWriter out = pageContext.getOut();
// Build up the output in a buffer (is probably faster than a bunch of out.write's)
......@@ -133,8 +133,8 @@ public class TabsTag extends BodyTagSupport {
String body = getBodyContent().getString();
// For each root item, print out an LI
AdminConsole.Item root = AdminConsole.getRootByChildID(pageID);
for (Iterator iter=items.iterator(); iter.hasNext(); ) {
AdminConsole.Item item = (AdminConsole.Item)iter.next();
for (Iterator<AdminConsole.Item> iter=items.iterator(); iter.hasNext(); ) {
AdminConsole.Item item = iter.next();
String value = body;
if (value != null) {
value = StringUtils.replace(value, "[id]", clean(item.getId()));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment