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: cosmetics
Date Sun, 13 Jan 2019 17:04:44 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 7efb5bf  cosmetics
7efb5bf is described below

commit 7efb5bfa17bcbbd09c77d4fca4281349e8d60dc6
Author: Thomas Andraschko <tandraschko@apache.org>
AuthorDate: Sun Jan 13 18:05:05 2019 +0100

    cosmetics
---
 .../javax/faces/context/PartialResponseWriter.java | 74 +++++++++++-----------
 .../renderkit/html/util/OutcomeTargetUtils.java    |  3 +-
 2 files changed, 38 insertions(+), 39 deletions(-)

diff --git a/api/src/main/java/javax/faces/context/PartialResponseWriter.java b/api/src/main/java/javax/faces/context/PartialResponseWriter.java
index bd6af47..91bbd84 100644
--- a/api/src/main/java/javax/faces/context/PartialResponseWriter.java
+++ b/api/src/main/java/javax/faces/context/PartialResponseWriter.java
@@ -46,9 +46,9 @@ public class PartialResponseWriter extends ResponseWriterWrapper
     {
         startChanges();
         
-        startElement ("delete", null);
-        writeAttribute ("id", targetId, null);
-        endElement ("delete");
+        startElement("delete", null);
+        writeAttribute("id", targetId, null);
+        endElement("delete");
     }
 
     /**
@@ -63,12 +63,12 @@ public class PartialResponseWriter extends ResponseWriterWrapper
             //error close the last op if any
             endInsert();
             
-            endElement ("changes");
+            endElement("changes");
             
             hasChanges = false;
         }
         
-        endElement ("partial-response");
+        endElement("partial-response");
     }
 
     public void endError() throws IOException
@@ -76,8 +76,8 @@ public class PartialResponseWriter extends ResponseWriterWrapper
         // Close open <error-message> element.
         
         endCDATA();
-        endElement ("error-message");
-        endElement ("error");
+        endElement("error-message");
+        endElement("error");
     }
 
     public void endEval() throws IOException
@@ -85,12 +85,12 @@ public class PartialResponseWriter extends ResponseWriterWrapper
         // Close open <eval> element.
         
         endCDATA();
-        endElement ("eval");
+        endElement("eval");
     }
 
     public void endExtension() throws IOException
     {
-        endElement ("extension");
+        endElement("extension");
     }
 
     public void endInsert() throws IOException
@@ -105,8 +105,8 @@ public class PartialResponseWriter extends ResponseWriterWrapper
         // Close open <insert> element.
         
         endCDATA();
-        endElement (insertType);
-        endElement ("insert");
+        endElement(insertType);
+        endElement("insert");
         
         insertType = null;
     }
@@ -114,14 +114,14 @@ public class PartialResponseWriter extends ResponseWriterWrapper
     public void endUpdate() throws IOException
     {
         endCDATA();
-        endElement ("update");
+        endElement("update");
     }
 
     public void redirect(String url) throws IOException
     {
-        startElement ("redirect", null);
-        writeAttribute ("url", url, null);
-        endElement ("redirect");
+        startElement("redirect", null);
+        writeAttribute("url", url, null);
+        endElement("redirect");
     }
 
     /**
@@ -132,9 +132,9 @@ public class PartialResponseWriter extends ResponseWriterWrapper
     {
         // JSF 2.2 section 2.2.6.1 Render Response Partial Processing
         // use writePreamble(...)
-        //_wrapped.write ("<?xml version=\"1.0\" encoding=\"utf-8\"?>");
+        //_wrapped.write("<?xml version=\"1.0\" encoding=\"utf-8\"?>");
         
-        startElement ("partial-response", null);
+        startElement("partial-response", null);
         
         // If by some reason the response has been reset, and the same
         // PartialResponseWriter is used, it is necessary to ensure any 
@@ -146,13 +146,13 @@ public class PartialResponseWriter extends ResponseWriterWrapper
 
     public void startError(String errorName) throws IOException
     {
-        startElement ("error", null);
+        startElement("error", null);
         
-        startElement ("error-name", null);
-        write (errorName);
-        endElement ("error-name");
+        startElement("error-name", null);
+        write(errorName);
+        endElement("error-name");
         
-        startElement ("error-message", null);
+        startElement("error-message", null);
         startCDATA();
         
         // Leave open; caller will write message.
@@ -162,7 +162,7 @@ public class PartialResponseWriter extends ResponseWriterWrapper
     {
         startChanges();
         
-        startElement ("eval", null);
+        startElement("eval", null);
         startCDATA();
         
         // Leave open; caller will write statements.
@@ -174,7 +174,7 @@ public class PartialResponseWriter extends ResponseWriterWrapper
         
         startChanges();
         
-        startElement ("extension", null);
+        startElement("extension", null);
         
         // Write out extension attributes.
         // TODO: schema mentions "id" attribute; not used?
@@ -205,8 +205,8 @@ public class PartialResponseWriter extends ResponseWriterWrapper
     {
         startChanges();
         
-        startElement ("update", null);
-        writeAttribute ("id", targetId, null);
+        startElement("update", null);
+        writeAttribute("id", targetId, null);
         startCDATA();
         
         // Leave open; caller will write content.
@@ -218,8 +218,8 @@ public class PartialResponseWriter extends ResponseWriterWrapper
         
         startChanges();
         
-        startElement ("attributes", null);
-        writeAttribute ("id", targetId, null);
+        startElement("attributes", null);
+        writeAttribute("id", targetId, null);
         
         attrNames = attributes.keySet().iterator();
         
@@ -227,20 +227,20 @@ public class PartialResponseWriter extends ResponseWriterWrapper
         {
             String attrName = attrNames.next();
             
-            startElement ("attribute", null);
-            writeAttribute ("name", attrName, null);
-            writeAttribute ("value", attributes.get (attrName), null);
-            endElement ("attribute");
+            startElement("attribute", null);
+            writeAttribute("name", attrName, null);
+            writeAttribute("value", attributes.get (attrName), null);
+            endElement("attribute");
         }
         
-        endElement ("attributes");
+        endElement("attributes");
     }
     
     private void startChanges () throws IOException
     {
         if (!hasChanges)
         {
-            startElement ("changes", null);
+            startElement("changes", null);
             
             hasChanges = true;
         }
@@ -259,9 +259,9 @@ public class PartialResponseWriter extends ResponseWriterWrapper
         
         startChanges();
         
-        startElement ("insert", null);
-        startElement (insertType, null);
-        writeAttribute ("id", targetId, null);
+        startElement("insert", null);
+        startElement(insertType, null);
+        writeAttribute("id", targetId, null);
         startCDATA();
         
         // Leave open; caller will write content.
diff --git a/impl/src/main/java/org/apache/myfaces/renderkit/html/util/OutcomeTargetUtils.java
b/impl/src/main/java/org/apache/myfaces/renderkit/html/util/OutcomeTargetUtils.java
index 358689f..03b1f14 100644
--- a/impl/src/main/java/org/apache/myfaces/renderkit/html/util/OutcomeTargetUtils.java
+++ b/impl/src/main/java/org/apache/myfaces/renderkit/html/util/OutcomeTargetUtils.java
@@ -61,8 +61,7 @@ public class OutcomeTargetUtils
         NavigationHandler nh = facesContext.getApplication().getNavigationHandler();
         if (!(nh instanceof ConfigurableNavigationHandler))
         {
-            throw new FacesException(
-                    "Navigation handler must be an instance of "
+            throw new FacesException("NavigationHandler must be an instance of "
                             + "ConfigurableNavigationHandler for using h:link or h:button");
         }
         ConfigurableNavigationHandler navigationHandler = (ConfigurableNavigationHandler)
nh;


Mime
View raw message