Add missing javadoc to Cache.synchronizedCache().

git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@659875 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael Busch 2008-05-24 21:07:48 +00:00
parent 3e7a15e317
commit 33aea48b02
1 changed files with 5 additions and 0 deletions

View File

@ -62,6 +62,11 @@ public abstract class Cache {
}
}
/**
* Returns a thread-safe cache backed by the specified cache.
* In order to guarantee thread-safety, all access to the backed cache must
* be accomplished through the returned cache.
*/
public static Cache synchronizedCache(Cache cache) {
return cache.getSynchronizedCache();
}