From 014d759d3518e30f1254949922a949249fc6ab39 Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Fri, 2 Mar 2012 12:49:38 -0800 Subject: [PATCH] Update example code for obtaining a locked DirCache Previous example was calling a method that no longer exists on DirCache. Change-Id: I864842c58df4f116b318dc4a150b789745769a0d --- .../src/org/eclipse/jgit/dircache/DirCacheBuildIterator.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/dircache/DirCacheBuildIterator.java b/org.eclipse.jgit/src/org/eclipse/jgit/dircache/DirCacheBuildIterator.java index 1eb95c4be..da5530666 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/dircache/DirCacheBuildIterator.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/dircache/DirCacheBuildIterator.java @@ -66,7 +66,7 @@ import org.eclipse.jgit.treewalk.AbstractTreeIterator; * algorithm. For example deleting a path: * *
- * final DirCache dirc = DirCache.lock(db);
+ * final DirCache dirc = db.lockDirCache();
  * final DirCacheBuilder edit = dirc.builder();
  *
  * final TreeWalk walk = new TreeWalk(db);