commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jstrac...@apache.org
Subject cvs commit: jakarta-commons-sandbox/jelly/src/java/org/apache/commons/jelly TagSupport.java
Date Thu, 13 Jun 2002 14:07:25 GMT
jstrachan    2002/06/13 07:07:25

  Modified:    jelly/src/java/org/apache/commons/jelly TagSupport.java
  Log:
  Minor patch to use 'isTrim' rather than 'getTrim' to follow the JavaBeans spec for boolean
properties.
  
  Revision  Changes    Path
  1.10      +8 -8      jakarta-commons-sandbox/jelly/src/java/org/apache/commons/jelly/TagSupport.java
  
  Index: TagSupport.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/jelly/src/java/org/apache/commons/jelly/TagSupport.java,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- TagSupport.java	13 Jun 2002 08:16:47 -0000	1.9
  +++ TagSupport.java	13 Jun 2002 14:07:25 -0000	1.10
  @@ -123,7 +123,7 @@
           }
       }
   
  -    public boolean getTrim() {
  +    public boolean isTrim() {
           if ( this.shouldTrim == null ) {
               Tag parent = getParent();
               if ( parent == null ) {
  @@ -133,7 +133,7 @@
                   if ( parent instanceof TagSupport ) {
                       TagSupport parentSupport = (TagSupport) parent;
   
  -                    this.shouldTrim = ( parentSupport.getTrim() ? Boolean.TRUE : Boolean.FALSE
);
  +                    this.shouldTrim = ( parentSupport.isTrim() ? Boolean.TRUE : Boolean.FALSE
);
                   } 
                   else {
                       this.shouldTrim = Boolean.TRUE;
  @@ -156,7 +156,7 @@
       
       /** @return the body of the tag */
       public Script getBody() {
  -        if ( getTrim()
  +        if ( isTrim()
                &&
                ! hasTrimmed )
           {
  
  
  

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


Mime
View raw message