myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lof...@apache.org
Subject svn commit: r1143890 - /myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/component/UIDatePicker.java
Date Thu, 07 Jul 2011 15:47:15 GMT
Author: lofwyr
Date: Thu Jul  7 15:47:15 2011
New Revision: 1143890

URL: http://svn.apache.org/viewvc?rev=1143890&view=rev
Log:
code style

Modified:
    myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/component/UIDatePicker.java

Modified: myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/component/UIDatePicker.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/component/UIDatePicker.java?rev=1143890&r1=1143889&r2=1143890&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/component/UIDatePicker.java
(original)
+++ myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/component/UIDatePicker.java
Thu Jul  7 15:47:15 2011
@@ -24,6 +24,7 @@ import javax.faces.component.UIComponent
 import javax.faces.context.FacesContext;
 import javax.faces.event.FacesEvent;
 import javax.faces.render.Renderer;
+import java.util.List;
 
 /*
  * Date: 30.05.2006
@@ -49,8 +50,7 @@ public class UIDatePicker extends UILink
   }
 
   private UIComponent getUIDateInput(UIComponent parent) {
-    for (Object object : parent.getChildren()) {
-      UIComponent child = (UIComponent) object;
+    for (UIComponent child : (List<UIComponent>) parent.getChildren()) {
       if (child instanceof UIDate) {
         return child;
       }



Mime
View raw message