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 [EMAIL PROTECTED] 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 [EMAIL PROTECTED] 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]