myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tandrasc...@apache.org
Subject svn commit: r1804674 - /myfaces/core/branches/2.3.x/shared/src/main/java/org/apache/myfaces/shared/renderkit/html/HtmlRendererUtils.java
Date Thu, 10 Aug 2017 14:45:34 GMT
Author: tandraschko
Date: Thu Aug 10 14:45:34 2017
New Revision: 1804674

URL: http://svn.apache.org/viewvc?rev=1804674&view=rev
Log:
MYFACES-3163 [perf] review working with SelectItem(s)

Modified:
    myfaces/core/branches/2.3.x/shared/src/main/java/org/apache/myfaces/shared/renderkit/html/HtmlRendererUtils.java

Modified: myfaces/core/branches/2.3.x/shared/src/main/java/org/apache/myfaces/shared/renderkit/html/HtmlRendererUtils.java
URL: http://svn.apache.org/viewvc/myfaces/core/branches/2.3.x/shared/src/main/java/org/apache/myfaces/shared/renderkit/html/HtmlRendererUtils.java?rev=1804674&r1=1804673&r2=1804674&view=diff
==============================================================================
--- myfaces/core/branches/2.3.x/shared/src/main/java/org/apache/myfaces/shared/renderkit/html/HtmlRendererUtils.java
(original)
+++ myfaces/core/branches/2.3.x/shared/src/main/java/org/apache/myfaces/shared/renderkit/html/HtmlRendererUtils.java
Thu Aug 10 14:45:34 2017
@@ -651,9 +651,9 @@ public final class HtmlRendererUtils
         boolean componentDisabled = isTrue(component.getAttributes()
                 .get("disabled"));
 
-        for (Iterator it = selectItemList.iterator(); it.hasNext();)
+        for (int i = 0; i < selectItemList.size(); i++)
         {
-            SelectItem selectItem = (SelectItem) it.next();
+            SelectItem selectItem = (SelectItem) selectItemList.get(i);
             if (selectItem instanceof SelectItemGroup)
             {
                 writer.startElement(HTML.OPTGROUP_ELEM, null); // component);
@@ -1184,9 +1184,9 @@ public final class HtmlRendererUtils
     {
         ResponseWriter writer = context.getResponseWriter();
 
-        for (Iterator it = selectItemList.iterator(); it.hasNext();)
+        for (int i = 0; i < selectItemList.size(); i++)
         {
-            SelectItem selectItem = (SelectItem) it.next();
+            SelectItem selectItem = (SelectItem) selectItemList.get(i);
 
             if (selectItem instanceof SelectItemGroup)
             {



Mime
View raw message