cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jo...@apache.org
Subject cvs commit: cocoon-2.0/src/java/org/apache/cocoon/generation DirectoryGenerator.java
Date Fri, 27 Jun 2003 23:04:41 GMT
joerg       2003/06/27 16:04:40

  Modified:    src/java/org/apache/cocoon/generation
                        DirectoryGenerator.java
  Log:
  fixed bug 20682: multiple calls on getValidity() return different DirValidity objects
  
  Revision  Changes    Path
  1.5       +4 -2      cocoon-2.0/src/java/org/apache/cocoon/generation/DirectoryGenerator.java
  
  Index: DirectoryGenerator.java
  ===================================================================
  RCS file: /home/cvs/cocoon-2.0/src/java/org/apache/cocoon/generation/DirectoryGenerator.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- DirectoryGenerator.java	21 Jun 2003 11:47:08 -0000	1.4
  +++ DirectoryGenerator.java	27 Jun 2003 23:04:40 -0000	1.5
  @@ -461,7 +461,9 @@
        *                        the timestamp of each file
        */
       public CacheValidity generateValidity() {
  -        this.dirvalidity = new DirValidity(this.refreshDelay);
  +        if (this.dirvalidity == null) {
  +            this.dirvalidity = new DirValidity(this.refreshDelay);
  +        }
           return this.dirvalidity;
       }
   
  
  
  

Mime
View raw message