Author: julien_viet
Date: 2010-07-21 04:40:50 -0400 (Wed, 21 Jul 2010)
New Revision: 3671
Modified:
portal/trunk/webui/portal/src/main/java/org/exoplatform/portal/webui/application/EventsWrapper.java
Log:
minor : use java 5 iteration style instead of iterator
Modified:
portal/trunk/webui/portal/src/main/java/org/exoplatform/portal/webui/application/EventsWrapper.java
===================================================================
---
portal/trunk/webui/portal/src/main/java/org/exoplatform/portal/webui/application/EventsWrapper.java 2010-07-21
06:39:08 UTC (rev 3670)
+++
portal/trunk/webui/portal/src/main/java/org/exoplatform/portal/webui/application/EventsWrapper.java 2010-07-21
08:40:50 UTC (rev 3671)
@@ -63,9 +63,8 @@
public void increaseCounter(UIPortlet portlet)
{
- for (Iterator iter = counters.iterator(); iter.hasNext();)
+ for (CounterWrapper counter : counters)
{
- CounterWrapper counter = (CounterWrapper)iter.next();
if (portlet.getWindowId().equals(counter.portletId))
{
counter.counter++;
@@ -77,9 +76,8 @@
public boolean isInvokedTooManyTimes(UIPortlet portlet)
{
- for (Iterator iter = counters.iterator(); iter.hasNext();)
+ for (CounterWrapper counter : counters)
{
- CounterWrapper counter = (CounterWrapper)iter.next();
if (portlet.getWindowId().equals(counter.portletId))
{
if (counter.counter + 1 > THRESHOLD)
Show replies by date