You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by jg...@apache.org on 2007/10/05 19:53:04 UTC
svn commit: r582364 -
/ant/core/trunk/src/main/org/apache/tools/ant/types/Resource.java
Author: jglick
Date: Fri Oct 5 10:53:03 2007
New Revision: 582364
URL: http://svn.apache.org/viewvc?rev=582364&view=rev
Log:
Javadoc clarification for Resource.getLastModified.
Modified:
ant/core/trunk/src/main/org/apache/tools/ant/types/Resource.java
Modified: ant/core/trunk/src/main/org/apache/tools/ant/types/Resource.java
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/types/Resource.java?rev=582364&r1=582363&r2=582364&view=diff
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/types/Resource.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/types/Resource.java Fri Oct 5 10:53:03 2007
@@ -172,10 +172,11 @@
}
/**
- * Tells the modification time in milliseconds since 01.01.1970 .
+ * Tells the modification time in milliseconds since 01.01.1970 (the "epoch").
*
- * @return 0 if the resource does not exist to mirror the behavior
- * of {@link java.io.File File}.
+ * @return the modification time, if that is meaningful (e.g. for a file resource which exists);
+ * 0 if the resource does not exist, to mirror the behavior of {@link java.io.File#lastModified};
+ * or 0 if the notion of modification time is meaningless for this class of resource (e.g. an inline string)
*/
public long getLastModified() {
if (isReference()) {
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org