myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tandrasc...@apache.org
Subject [myfaces] branch master updated: refactored
Date Tue, 18 Dec 2018 21:27:01 GMT
This is an automated email from the ASF dual-hosted git repository.

tandraschko pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/myfaces.git


The following commit(s) were added to refs/heads/master by this push:
     new a3d2eab  refactored
a3d2eab is described below

commit a3d2eab5a9ccb12e2f730a71b51b9e5b97176dc9
Author: Thomas Andraschko <tandraschko@apache.org>
AuthorDate: Tue Dec 18 22:25:27 2018 +0100

    refactored
---
 .../view/facelets/tag/jsf/ComponentTagHandlerDelegate.java  |  1 -
 .../myfaces/view/facelets/tag/jstl/core/ForEachHandler.java | 13 +++++--------
 2 files changed, 5 insertions(+), 9 deletions(-)

diff --git a/impl/src/main/java/org/apache/myfaces/view/facelets/tag/jsf/ComponentTagHandlerDelegate.java
b/impl/src/main/java/org/apache/myfaces/view/facelets/tag/jsf/ComponentTagHandlerDelegate.java
index 36dc023..8c8c9a0 100644
--- a/impl/src/main/java/org/apache/myfaces/view/facelets/tag/jsf/ComponentTagHandlerDelegate.java
+++ b/impl/src/main/java/org/apache/myfaces/view/facelets/tag/jsf/ComponentTagHandlerDelegate.java
@@ -223,7 +223,6 @@ public class ComponentTagHandlerDelegate extends TagHandlerDelegate
                 
         // grab our component
         UIComponent c = null;
-        //boolean componentFoundInserted = false;
 
         //Used to preserve the original parent. Note when the view is being refreshed, the
real parent could be
         //another component.
diff --git a/impl/src/main/java/org/apache/myfaces/view/facelets/tag/jstl/core/ForEachHandler.java
b/impl/src/main/java/org/apache/myfaces/view/facelets/tag/jstl/core/ForEachHandler.java
index af2ae34..bc69d02 100644
--- a/impl/src/main/java/org/apache/myfaces/view/facelets/tag/jstl/core/ForEachHandler.java
+++ b/impl/src/main/java/org/apache/myfaces/view/facelets/tag/jstl/core/ForEachHandler.java
@@ -327,8 +327,7 @@ public final class ForEachHandler extends TagHandler implements ComponentContain
 
                     if (value instanceof Serializable)
                     {
-                        iterationState.getValueList().add(
-                            new Object[]{base, value, i});
+                        iterationState.getValueList().add(new Object[]{base, value, i});
                     }
                     else
                     {
@@ -354,15 +353,14 @@ public final class ForEachHandler extends TagHandler implements ComponentContain
                                 }
                                 else
                                 {
-                                    ve = ctx.getExpressionFactory().createValueExpression(
-                                                itrS, Object.class);
+                                    ve = ctx.getExpressionFactory().createValueExpression(itrS,
Object.class);
                                 }
                             }
                             else
                             {
                                 ve = new IterationStatusExpression(itrS);
                             }
-                            setVar(ctx, parent, uniqueId, base+"_vs", vs, ve, srcVE);
+                            setVar(ctx, parent, uniqueId, base + "_vs", vs, ve, srcVE);
                         }
 
                         // execute body
@@ -447,15 +445,14 @@ public final class ForEachHandler extends TagHandler implements ComponentContain
                             }
                             else
                             {
-                                ve = ctx.getExpressionFactory().createValueExpression(
-                                            itrS, Object.class);
+                                ve = ctx.getExpressionFactory().createValueExpression(itrS,
Object.class);
                             }
                         }
                         else
                         {
                             ve = new IterationStatusExpression(itrS);
                         }
-                        setVar(ctx, parent, uniqueId, base+"_vs", vs, ve, srcVE);
+                        setVar(ctx, parent, uniqueId, base + "_vs", vs, ve, srcVE);
                     }
 
                     // execute body


Mime
View raw message