Skip to content

Apache Lucene open-source search software

Add missing javadoc to Cache.synchronizedCache().

Michael Busch33aea48b02f1
diff --git a/src/java/org/apache/lucene/util/cache/Cache.java b/src/java/org/apache/lucene/util/cache/Cache.java
index 17b9e738a79..820d46cc11b 100644
--- a/src/java/org/apache/lucene/util/cache/Cache.java
+++ b/src/java/org/apache/lucene/util/cache/Cache.java
@@ -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();
}