summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSasa Zivkov <sasa.zivkov@sap.com>2012-09-20 16:18:59 +0200
committerSasa Zivkov <sasa.zivkov@sap.com>2012-09-20 16:20:19 +0200
commit7ad88afeb8ce95905b1e36ba7b0ebcc82c945ae8 (patch)
tree5006f481e30009713c5557e89a1d77d98b3a067c
parentc9cce254c7e928770763be309573b6cfd0a5ee4e (diff)
downloadjgit-7ad88afeb8ce95905b1e36ba7b0ebcc82c945ae8.tar.gz
jgit-7ad88afeb8ce95905b1e36ba7b0ebcc82c945ae8.zip
Fix the javadoc for GC.setExpire
Clarify expiration of objects with the modification time exactly at the given time instant. Change-Id: I2000aec89c8d6a95700380b0a32275d2d658f67e Signed-off-by: Sasa Zivkov <sasa.zivkov@sap.com>
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/storage/file/GC.java9
1 files changed, 6 insertions, 3 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/storage/file/GC.java b/org.eclipse.jgit/src/org/eclipse/jgit/storage/file/GC.java
index 2e7208cd80..bf3a8a2b0a 100644
--- a/org.eclipse.jgit/src/org/eclipse/jgit/storage/file/GC.java
+++ b/org.eclipse.jgit/src/org/eclipse/jgit/storage/file/GC.java
@@ -838,12 +838,15 @@ public class GC {
/**
* During gc() or prune() each unreferenced, loose object which has been
- * created or modified after <code>expire</code> will not be pruned. Only
- * older objects may be pruned. If set to null then every object is a
+ * created or modified after or at <code>expire</code> will not be pruned.
+ * Only older objects may be pruned. If set to null then every object is a
* candidate for pruning.
*
* @param expire
- * minimal age of objects to be pruned in milliseconds.
+ * instant in time which defines object expiration
+ * objects with modification time before this instant are expired
+ * objects with modification time newer or equal to this instant
+ * are not expired
*/
public void setExpire(Date expire) {
this.expire = expire;