luehe       2004/06/14 21:58:38

  Modified:    jasper2/src/share/org/apache/jasper/compiler
                        JspRuntimeContext.java
  Log:
  Added setJspReloadCount()
  
  Revision  Changes    Path
  1.23      +12 -5     
jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/compiler/JspRuntimeContext.java
  
  Index: JspRuntimeContext.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/compiler/JspRuntimeContext.java,v
  retrieving revision 1.22
  retrieving revision 1.23
  diff -u -r1.22 -r1.23
  --- JspRuntimeContext.java    16 Apr 2004 23:01:29 -0000      1.22
  +++ JspRuntimeContext.java    15 Jun 2004 04:58:38 -0000      1.23
  @@ -260,10 +260,17 @@
       /**
        * Increments the JSP reload counter.
        */
  -    public void incrementJspReloadCount() {
  -        synchronized(this) {
  -            jspReloadCount++;
  -        }
  +    public synchronized void incrementJspReloadCount() {
  +        jspReloadCount++;
  +    }
  +
  +    /**
  +     * Resets the JSP reload counter.
  +     *
  +     * @param count Value to which to reset the JSP reload counter
  +     */
  +    public synchronized void setJspReloadCount(int count) {
  +        this.jspReloadCount = count;
       }
   
       /**
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to