You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by bo...@apache.org on 2007/01/06 11:34:14 UTC

svn commit: r493441 - /myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/component/UITabGroup.java

Author: bommel
Date: Sat Jan  6 02:34:13 2007
New Revision: 493441

URL: http://svn.apache.org/viewvc?view=rev&rev=493441
Log:
checkstyle

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

Modified: myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/component/UITabGroup.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/component/UITabGroup.java?view=diff&rev=493441&r1=493440&r2=493441
==============================================================================
--- myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/component/UITabGroup.java (original)
+++ myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/component/UITabGroup.java Sat Jan  6 02:34:13 2007
@@ -116,7 +116,7 @@
   }
 
   private void resetTabLayout() {
-    for (UIComponent component : (List<UIComponent>)getChildren()) {
+    for (UIComponent component : (List<UIComponent>) getChildren()) {
       component.getAttributes().remove(ATTR_LAYOUT_WIDTH);
       component.getAttributes().remove(ATTR_LAYOUT_HEIGHT);
     }
@@ -202,7 +202,7 @@
   public void broadcast(FacesEvent facesEvent) throws AbortProcessingException {
     super.broadcast(facesEvent);
     if (facesEvent instanceof TabChangeEvent) {
-      setActiveIndex(((TabChangeEvent)facesEvent).getNewTabIndex());
+      setActiveIndex(((TabChangeEvent) facesEvent).getNewTabIndex());
       MethodBinding tabChangeListenerBinding = getTabChangeListener();
       if (tabChangeListenerBinding != null) {
         try {
@@ -338,7 +338,7 @@
 
   private UIPanel getTab(int index) {
     int i = 0;
-    for (UIComponent component : (List<UIComponent>)getChildren()) {
+    for (UIComponent component : (List<UIComponent>) getChildren()) {
       if (component instanceof UIPanel) {
         if (i == index) {
           return (UIPanel) component;
@@ -348,7 +348,7 @@
         LOG.error("Invalid component in UITabGroup: " + component);
       }
     }
-    System.err.println("Found no component with "+ index + " " + getChildCount());
+    LOG.error("Found no component with index: "+ index + " childCount: " + getChildCount());
     return null;
   }