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 Mon, 15 Jul 2019 14:56:34 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 ef5894f  refactored
ef5894f is described below

commit ef5894f96f38bd812d5c1d0db0c36cacd57b0514
Author: Thomas Andraschko <tandraschko@apache.org>
AuthorDate: Mon Jul 15 16:56:28 2019 +0200

    refactored
---
 .../myfaces/view/facelets/tag/jsf/core/EventHandler.java | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/impl/src/main/java/org/apache/myfaces/view/facelets/tag/jsf/core/EventHandler.java
b/impl/src/main/java/org/apache/myfaces/view/facelets/tag/jsf/core/EventHandler.java
index d27b0d8..aab1276 100644
--- a/impl/src/main/java/org/apache/myfaces/view/facelets/tag/jsf/core/EventHandler.java
+++ b/impl/src/main/java/org/apache/myfaces/view/facelets/tag/jsf/core/EventHandler.java
@@ -83,7 +83,7 @@ public final class EventHandler extends TagHandler
     
     private boolean listenerIsCompositeComponentME;
     
-    public EventHandler (TagConfig tagConfig)
+    public EventHandler(TagConfig tagConfig)
     {
         super (tagConfig);
         
@@ -172,7 +172,7 @@ public final class EventHandler extends TagHandler
      */
     
     @SuppressWarnings("unchecked")
-    private Class<? extends ComponentSystemEvent> getEventClass (FaceletContext context)
+    private Class<? extends ComponentSystemEvent> getEventClass(FaceletContext context)
     {
         Class<?> eventClass = null;
         String value = null;
@@ -216,7 +216,7 @@ public final class EventHandler extends TagHandler
         }
         else if (events.size() > 1)
         {
-            StringBuilder classNames = new StringBuilder ("[");
+            StringBuilder classNames = new StringBuilder("[");
             Iterator<Class<? extends ComponentSystemEvent>> eventIterator = events.iterator();
             
             // TODO: The spec is somewhat vague, but I think we're supposed to throw an exception
@@ -229,19 +229,19 @@ public final class EventHandler extends TagHandler
             
             while (eventIterator.hasNext())
             {
-                classNames.append (eventIterator.next().getName());
+                classNames.append(eventIterator.next().getName());
                 
                 if (eventIterator.hasNext())
                 {
-                    classNames.append (", ");
+                    classNames.append(", ");
                 }
                 else
                 {
-                    classNames.append (']');
+                    classNames.append(']');
                 }
             }
             
-            throw new FacesException ("The event name '" + value + "' is mapped to more than
one " +
+            throw new FacesException("The event name '" + value + "' is mapped to more than
one " +
                 " event class: " + classNames.toString());
         }
         else
@@ -249,7 +249,7 @@ public final class EventHandler extends TagHandler
             eventClass = events.iterator().next();
         }
         
-        if (!ComponentSystemEvent.class.isAssignableFrom (eventClass))
+        if (!ComponentSystemEvent.class.isAssignableFrom(eventClass))
         {
             throw new TagAttributeException (type, "Event class " + eventClass.getName()
+
                 " is not of type javax.faces.event.ComponentSystemEvent");


Mime
View raw message