cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jo...@apache.org
Subject svn commit: r611518 - /cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/xml/IncludeXMLConsumer.java
Date Sun, 13 Jan 2008 01:35:52 GMT
Author: joerg
Date: Sat Jan 12 17:35:47 2008
New Revision: 611518

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

Modified:
    cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/xml/IncludeXMLConsumer.java

Modified: cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/xml/IncludeXMLConsumer.java
URL: http://svn.apache.org/viewvc/cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/xml/IncludeXMLConsumer.java?rev=611518&r1=611517&r2=611518&view=diff
==============================================================================
--- cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/xml/IncludeXMLConsumer.java (original)
+++ cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/xml/IncludeXMLConsumer.java Sat
Jan 12 17:35:47 2008
@@ -66,24 +66,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