[jboss-cvs] JBossAS SVN: r59128 - projects/vfs/trunk/src/main/java/org/jboss/virtual/plugins/context
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Tue Dec 19 02:57:57 EST 2006
Author: scott.stark at jboss.org
Date: 2006-12-19 02:57:54 -0500 (Tue, 19 Dec 2006)
New Revision: 59128
Modified:
projects/vfs/trunk/src/main/java/org/jboss/virtual/plugins/context/AbstractVirtualFileHandler.java
Log:
Fix the hasBeenModified check to not return true on the first call.
Modified: projects/vfs/trunk/src/main/java/org/jboss/virtual/plugins/context/AbstractVirtualFileHandler.java
===================================================================
--- projects/vfs/trunk/src/main/java/org/jboss/virtual/plugins/context/AbstractVirtualFileHandler.java 2006-12-19 03:40:50 UTC (rev 59127)
+++ projects/vfs/trunk/src/main/java/org/jboss/virtual/plugins/context/AbstractVirtualFileHandler.java 2006-12-19 07:57:54 UTC (rev 59128)
@@ -110,13 +110,14 @@
public boolean hasBeenModified() throws IOException
{
+ boolean hasBeenModified = false;
long last = getLastModified();
if (cachedLastModified != last)
{
+ hasBeenModified = cachedLastModified != 0;
cachedLastModified = last;
- return true;
}
- return false;
+ return hasBeenModified;
}
@@ -337,11 +338,13 @@
return true;
}
+ /*
@Override
protected void finalize() throws Throwable
{
close();
}
+ */
/**
* Safely get a url version of the string
More information about the jboss-cvs-commits
mailing list