cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jo...@apache.org
Subject svn commit: r608309 - /cocoon/trunk/core/cocoon-pipeline/cocoon-pipeline-impl/src/main/java/org/apache/cocoon/xml/IncludeXMLConsumer.java
Date Thu, 03 Jan 2008 02:28:21 GMT
Author: joerg
Date: Wed Jan  2 18:28:20 2008
New Revision: 608309

URL: http://svn.apache.org/viewvc?rev=608309&view=rev
Log:
cosmetics: one "central" constructor, others calling this(..);

Modified:
    cocoon/trunk/core/cocoon-pipeline/cocoon-pipeline-impl/src/main/java/org/apache/cocoon/xml/IncludeXMLConsumer.java

Modified: cocoon/trunk/core/cocoon-pipeline/cocoon-pipeline-impl/src/main/java/org/apache/cocoon/xml/IncludeXMLConsumer.java
URL: http://svn.apache.org/viewvc/cocoon/trunk/core/cocoon-pipeline/cocoon-pipeline-impl/src/main/java/org/apache/cocoon/xml/IncludeXMLConsumer.java?rev=608309&r1=608308&r2=608309&view=diff
==============================================================================
--- cocoon/trunk/core/cocoon-pipeline/cocoon-pipeline-impl/src/main/java/org/apache/cocoon/xml/IncludeXMLConsumer.java
(original)
+++ cocoon/trunk/core/cocoon-pipeline/cocoon-pipeline-impl/src/main/java/org/apache/cocoon/xml/IncludeXMLConsumer.java
Wed Jan  2 18:28:20 2008
@@ -64,24 +64,22 @@
      * Constructor
      */
     public IncludeXMLConsumer (XMLConsumer consumer) {
-        this.contentHandler = consumer;
-        this.lexicalHandler = consumer;
+        this(consumer, consumer);
     }
 
     /**
      * Constructor
      */
-    public IncludeXMLConsumer (ContentHandler contentHandler, LexicalHandler lexicalHandler)
{
-        this.contentHandler = contentHandler;
-        this.lexicalHandler = lexicalHandler;
+    public IncludeXMLConsumer (ContentHandler contentHandler) {
+        this(contentHandler, contentHandler instanceof LexicalHandler ? (LexicalHandler)contentHandler
: null);
     }
 
     /**
      * Constructor
      */
-    public IncludeXMLConsumer (ContentHandler contentHandler) {
+    public IncludeXMLConsumer (ContentHandler contentHandler, LexicalHandler lexicalHandler)
{
         this.contentHandler = contentHandler;
-        this.lexicalHandler = contentHandler instanceof LexicalHandler ? (LexicalHandler)contentHandler
: null;
+        this.lexicalHandler = lexicalHandler;
     }
 
     /**



Mime
View raw message