jakarta-taglibs-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sh...@apache.org
Subject cvs commit: jakarta-taglibs/standard/src/javax/servlet/jsp/jstl/core LoopTag.java LoopTagSupport.java
Date Fri, 03 May 2002 02:34:03 GMT
shawn       02/05/02 19:34:03

  Modified:    standard/src/javax/servlet/jsp/jstl/core LoopTag.java
                        LoopTagSupport.java
  Log:
  getIteratorStatus -> getLoopStatus [Bug 8759]
  
  Revision  Changes    Path
  1.2       +1 -1      jakarta-taglibs/standard/src/javax/servlet/jsp/jstl/core/LoopTag.java
  
  Index: LoopTag.java
  ===================================================================
  RCS file: /home/cvs/jakarta-taglibs/standard/src/javax/servlet/jsp/jstl/core/LoopTag.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- LoopTag.java	31 Jan 2002 17:37:40 -0000	1.1
  +++ LoopTag.java	3 May 2002 02:34:03 -0000	1.2
  @@ -89,5 +89,5 @@
        *
        * @return the LoopTagStatus for the current LoopTag
        */
  -    public LoopTagStatus getIteratorStatus();
  +    public LoopTagStatus getLoopStatus();
   }
  
  
  
  1.7       +7 -7      jakarta-taglibs/standard/src/javax/servlet/jsp/jstl/core/LoopTagSupport.java
  
  Index: LoopTagSupport.java
  ===================================================================
  RCS file: /home/cvs/jakarta-taglibs/standard/src/javax/servlet/jsp/jstl/core/LoopTagSupport.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- LoopTagSupport.java	1 May 2002 17:22:45 -0000	1.6
  +++ LoopTagSupport.java	3 May 2002 02:34:03 -0000	1.7
  @@ -157,7 +157,7 @@
        * Our 'internal index' begins at 0 and increases by 'step' each
        * round; this is arbitrary, but it seemed a simple way of keeping
        * track of the information we need.  To avoid computing
  -     * getIteratorStatus().getCount() by dividing index / step, we keep
  +     * getLoopStatus().getCount() by dividing index / step, we keep
        * a separate 'count' and increment it by 1 each round (as a minor
        * performance improvement).
        */
  @@ -363,7 +363,7 @@
        * implementation of subclasses that are happy with reasonable default
        * behavior.)
        */
  -    public LoopTagStatus getIteratorStatus() {
  +    public LoopTagStatus getLoopStatus() {
   
           // local implementation with reasonable default behavior
           class Status implements LoopTagStatus {
  @@ -379,7 +379,7 @@
                    * Access the item through getCurrent() instead of just
                    * returning the item our containing class stores.  This
                    * should allow a subclass of LoopTagSupport to override
  -                 * getCurrent() without having to rewrite getIteratorStatus() too.
  +                 * getCurrent() without having to rewrite getLoopStatus() too.
                    */
                   return (LoopTagSupport.this.getCurrent());
               }
  @@ -544,9 +544,9 @@
            * Also, just to be defensive, we handle the case of a null
            * 'status' object as well.
            *
  -         * We call getCurrent() and getIteratorStatus() (instead of just using
  +         * We call getCurrent() and getLoopStatus() (instead of just using
            * 'item' and 'status') to bridge to subclasses correctly.
  -         * A subclass can override getCurrent() or getIteratorStatus() but still
  +         * A subclass can override getCurrent() or getLoopStatus() but still
            * depend on our doStartTag() and doAfterBody(), which call this
            * method (exposeVariables()), to expose 'item' and 'status'
            * correctly.
  @@ -559,10 +559,10 @@
                   pageContext.setAttribute(itemId, getCurrent());
           }
           if (statusId != null) {
  -            if (getIteratorStatus() == null)
  +            if (getLoopStatus() == null)
                   pageContext.removeAttribute(statusId, PageContext.PAGE_SCOPE);
               else
  -                pageContext.setAttribute(statusId, getIteratorStatus());
  +                pageContext.setAttribute(statusId, getLoopStatus());
           }
   
       }
  
  
  

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


Mime
View raw message