You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by an...@apache.org on 2007/02/23 18:21:49 UTC

svn commit: r511024 - /lenya/trunk/src/java/org/apache/lenya/cms/cocoon/source/RepositorySourceValidity.java

Author: andreas
Date: Fri Feb 23 09:21:48 2007
New Revision: 511024

URL: http://svn.apache.org/viewvc?view=rev&rev=511024
Log:
RepositorySourceValidity: don't use stale node for lastModified comparison, but return UNKNOWN.

Modified:
    lenya/trunk/src/java/org/apache/lenya/cms/cocoon/source/RepositorySourceValidity.java

Modified: lenya/trunk/src/java/org/apache/lenya/cms/cocoon/source/RepositorySourceValidity.java
URL: http://svn.apache.org/viewvc/lenya/trunk/src/java/org/apache/lenya/cms/cocoon/source/RepositorySourceValidity.java?view=diff&rev=511024&r1=511023&r2=511024
==============================================================================
--- lenya/trunk/src/java/org/apache/lenya/cms/cocoon/source/RepositorySourceValidity.java (original)
+++ lenya/trunk/src/java/org/apache/lenya/cms/cocoon/source/RepositorySourceValidity.java Fri Feb 23 09:21:48 2007
@@ -45,16 +45,7 @@
     }
 
     public int isValid() {
-        try {
-            if (getNode().getLastModified() == this.lastModified) {
-                return SourceValidity.VALID;
-            }
-            else {
-                return SourceValidity.INVALID;
-            }
-        } catch (RepositoryException e) {
-            throw new RuntimeException(e);
-        }
+        return SourceValidity.UNKNOWN;
     }
     
     protected Node getNode() {



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@lenya.apache.org
For additional commands, e-mail: commits-help@lenya.apache.org