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/08/11 20:31:20 UTC

svn commit: r564954 - /myfaces/tobago/trunk/contrib/facelets/src/main/java/org/apache/myfaces/tobago/facelets/AttributeHandler.java

Author: bommel
Date: Sat Aug 11 11:31:19 2007
New Revision: 564954

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

Modified:
    myfaces/tobago/trunk/contrib/facelets/src/main/java/org/apache/myfaces/tobago/facelets/AttributeHandler.java

Modified: myfaces/tobago/trunk/contrib/facelets/src/main/java/org/apache/myfaces/tobago/facelets/AttributeHandler.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/contrib/facelets/src/main/java/org/apache/myfaces/tobago/facelets/AttributeHandler.java?view=diff&rev=564954&r1=564953&r2=564954
==============================================================================
--- myfaces/tobago/trunk/contrib/facelets/src/main/java/org/apache/myfaces/tobago/facelets/AttributeHandler.java (original)
+++ myfaces/tobago/trunk/contrib/facelets/src/main/java/org/apache/myfaces/tobago/facelets/AttributeHandler.java Sat Aug 11 11:31:19 2007
@@ -81,13 +81,13 @@
         MethodExpression action = getActionMethodExpression(faceletContext, ComponentUtil.ACTION_ARGS, String.class);
         if (action != null) {
           // TODO jsf 1.2
-          ((ActionSource)parent).setAction(new LegacyMethodBinding(action));
+          ((ActionSource) parent).setAction(new LegacyMethodBinding(action));
         }
       } else if (parent instanceof ActionSource && TobagoConstants.ATTR_ACTION_LISTENER.equals(nameValue)) {
         MethodExpression action = getActionMethodExpression(faceletContext, ComponentUtil.ACTION_LISTENER_ARGS, null);
         if (action != null) {
           // TODO jsf 1.2
-          ((ActionSource)parent).setActionListener(new LegacyMethodBinding(action));
+          ((ActionSource) parent).setActionListener(new LegacyMethodBinding(action));
         }
       } else if (!parent.getAttributes().containsKey(nameValue)) {
         if (value.isLiteral()) {
@@ -102,7 +102,7 @@
   private MethodExpression getActionMethodExpression(FaceletContext faceletContext, Class [] args, Class returnType) {
     if (value.getValue().startsWith("$")) {
       Object obj = value.getValueExpression(faceletContext, String.class).getValue(faceletContext);
-      if (obj != null && obj instanceof String && ((String)obj).length() > 0) {
+      if (obj != null && obj instanceof String && ((String) obj).length() > 0) {
         TagAttribute attribute = new TagAttribute(value.getLocation(), value.getNamespace(),
             value.getLocalName(), value.getQName(), (String) obj);
         return attribute.getMethodExpression(faceletContext, returnType, args);