From d00b77dd77ead032390843335ce5810fe039c598 Mon Sep 17 00:00:00 2001 From: "Jesse N. Glick" Date: Fri, 5 Oct 2007 17:53:03 +0000 Subject: [PATCH] Javadoc clarification for Resource.getLastModified. git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@582364 13f79535-47bb-0310-9956-ffa450edef68 --- src/main/org/apache/tools/ant/types/Resource.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/main/org/apache/tools/ant/types/Resource.java b/src/main/org/apache/tools/ant/types/Resource.java index 7691bd6b6..3b141e789 100644 --- a/src/main/org/apache/tools/ant/types/Resource.java +++ b/src/main/org/apache/tools/ant/types/Resource.java @@ -172,10 +172,11 @@ public class Resource extends DataType implements Cloneable, Comparable, Resourc } /** - * 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()) {