You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by di...@apache.org on 2004/10/29 01:35:18 UTC

cvs commit: jakarta-commons/jelly/src/java/org/apache/commons/jelly/tags/core MuteTag.java

dion        2004/10/28 16:35:18

  Modified:    jelly/src/java/org/apache/commons/jelly/tags/core
                        MuteTag.java
  Log:
  Move class only used by Mute to a static inner class
  
  Revision  Changes    Path
  1.4       +15 -16    jakarta-commons/jelly/src/java/org/apache/commons/jelly/tags/core/MuteTag.java
  
  Index: MuteTag.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/jelly/src/java/org/apache/commons/jelly/tags/core/MuteTag.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- MuteTag.java	28 Oct 2004 22:21:44 -0000	1.3
  +++ MuteTag.java	28 Oct 2004 23:35:18 -0000	1.4
  @@ -41,19 +41,18 @@
           super.invokeBody(new MuteXMLOutput());
       }
   
  +    /**
  +     * An XMLOutput which really outputs nothing, in particular, avoids calling
  +     * toString() in objects returned...
  +     */
  +   static class MuteXMLOutput extends XMLOutput {
  +       public MuteXMLOutput() {
  +           super(new DefaultHandler());
  +       }
  +       
  +       public void objectData(Object o) {
  +           // do nothing, not even invoke the toString!
  +       }
  +   }
   
  -} // class TagSupport
  -
  -/**
  -  * An XMLOutput which really outputs nothing, in particular, avoids calling
  -  * toString() in objects returned...
  -  */
  -class MuteXMLOutput extends XMLOutput {
  -    public MuteXMLOutput() {
  -        super(new DefaultHandler());
  -    }
  -    
  -    public void objectData(Object o) {
  -        // do nothing, not even invoke the toString!
  -    }
  -}
  +} // class TagSupport
  \ No newline at end of file
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org