You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-commits@lucene.apache.org by bu...@apache.org on 2008/05/24 23:07:49 UTC

svn commit: r659875 - /lucene/java/trunk/src/java/org/apache/lucene/util/cache/Cache.java

Author: buschmi
Date: Sat May 24 14:07:48 2008
New Revision: 659875

URL: http://svn.apache.org/viewvc?rev=659875&view=rev
Log:
Add missing javadoc to Cache.synchronizedCache().

Modified:
    lucene/java/trunk/src/java/org/apache/lucene/util/cache/Cache.java

Modified: lucene/java/trunk/src/java/org/apache/lucene/util/cache/Cache.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/src/java/org/apache/lucene/util/cache/Cache.java?rev=659875&r1=659874&r2=659875&view=diff
==============================================================================
--- lucene/java/trunk/src/java/org/apache/lucene/util/cache/Cache.java (original)
+++ lucene/java/trunk/src/java/org/apache/lucene/util/cache/Cache.java Sat May 24 14:07:48 2008
@@ -62,6 +62,11 @@
     }
   }
   
+  /**
+   * 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();
   }