cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vgritse...@apache.org
Subject cvs commit: xml-cocoon2/src/java/org/apache/cocoon/generation FileGenerator.java
Date Sun, 21 Apr 2002 17:33:38 GMT
vgritsenko    02/04/21 10:33:38

  Modified:    src/java/org/apache/cocoon/generation Tag:
                        cocoon_2_0_3_branch FileGenerator.java
  Log:
  minor optimization
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.7.2.1   +4 -3      xml-cocoon2/src/java/org/apache/cocoon/generation/FileGenerator.java
  
  Index: FileGenerator.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/java/org/apache/cocoon/generation/FileGenerator.java,v
  retrieving revision 1.7
  retrieving revision 1.7.2.1
  diff -u -r1.7 -r1.7.2.1
  --- FileGenerator.java	22 Feb 2002 07:03:51 -0000	1.7
  +++ FileGenerator.java	21 Apr 2002 17:33:38 -0000	1.7.2.1
  @@ -73,7 +73,7 @@
    * @author <a href="mailto:fumagalli@exoffice.com">Pierpaolo Fumagalli</a>
    *         (Apache Software Foundation, Exoffice Technologies)
    * @author <a href="mailto:cziegeler@apache.org">Carsten Ziegeler</a>
  - * @version CVS $Id: FileGenerator.java,v 1.7 2002/02/22 07:03:51 cziegeler Exp $
  + * @version CVS $Id: FileGenerator.java,v 1.7.2.1 2002/04/21 17:33:38 vgritsenko Exp $
    */
   public class FileGenerator extends ComposerGenerator
   implements Cacheable {
  @@ -123,8 +123,9 @@
        *         component is currently not cacheable.
        */
       public CacheValidity generateValidity() {
  -        if (this.inputSource.getLastModified() != 0) {
  -            return new TimeStampCacheValidity(this.inputSource.getLastModified());
  +        long modified = this.inputSource.getLastModified();
  +        if (modified != 0) {
  +            return new TimeStampCacheValidity(modified);
           }
           return null;
       }
  
  
  

----------------------------------------------------------------------
In case of troubles, e-mail:     webmaster@xml.apache.org
To unsubscribe, e-mail:          cocoon-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-cvs-help@xml.apache.org


Mime
View raw message