cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gcas...@apache.org
Subject cvs commit: cocoon-2.1/src/scratchpad/src/org/apache/cocoon/components/source/impl MultiSourceValidity.java
Date Wed, 13 Aug 2003 20:58:04 GMT
gcasper     2003/08/13 13:58:04

  Modified:    src/scratchpad/src/org/apache/cocoon/components/source/impl
                        MultiSourceValidity.java
  Log:
  -expiry is already checked within isValid()
  -since expiry is also re-set within isValid(), isValid(newValidity) always
   returned 1
  
  Revision  Changes    Path
  1.2       +1 -6      cocoon-2.1/src/scratchpad/src/org/apache/cocoon/components/source/impl/MultiSourceValidity.java
  
  Index: MultiSourceValidity.java
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/scratchpad/src/org/apache/cocoon/components/source/impl/MultiSourceValidity.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- MultiSourceValidity.java	1 Aug 2003 17:21:15 -0000	1.1
  +++ MultiSourceValidity.java	13 Aug 2003 20:58:04 -0000	1.2
  @@ -117,11 +117,6 @@
       }
   
       public int isValid(SourceValidity newValidity) {
  -        if (System.currentTimeMillis() <= expiry) {
  -            return 1;
  -        }
  -        expiry = System.currentTimeMillis() + delay;
  -
           if (data == null || !isClosed) {
               return -1;
           }
  
  
  

Mime
View raw message