Skip to content

Apache Lucene open-source search software

fix malformed javadoc, and add an @see for close() to getAdminCore since caller needs to be aware of it

Chris M. Hostetterece75c9762eb
diff --git a/src/java/org/apache/solr/core/CoreContainer.java b/src/java/org/apache/solr/core/CoreContainer.java
index 8cdb2e08795..d2572676926 100644
--- a/src/java/org/apache/solr/core/CoreContainer.java
+++ b/src/java/org/apache/solr/core/CoreContainer.java
@@ -457,6 +457,7 @@ public class CoreContainer
/**
* Ensures there is a valid core to handle MultiCore admin taks and
* increase its refcount.
+ * @see SolrCore#close()
* @return the acquired admin core, null if no core is available
*/
public SolrCore getAdminCore() {
diff --git a/src/java/org/apache/solr/core/SolrCore.java b/src/java/org/apache/solr/core/SolrCore.java
index 49b084bbadd..76ab4edb692 100644
--- a/src/java/org/apache/solr/core/SolrCore.java
+++ b/src/java/org/apache/solr/core/SolrCore.java
@@ -586,20 +586,24 @@ public final class SolrCore implements SolrInfoMBean {
}
/**
- * Close all resources allocated by the core.
- * 1. searcher
- * 2. updateHandler
- * 3. all CloseHooks will be notified
- * 4. All MBeans will be unregistered from MBeanServer if JMX was enabled
+ * Close all resources allocated by the core...
+ * <ul>
+ * <li>searcher</li>
+ * <li>updateHandler</li>
+ * <li>all CloseHooks will be notified</li>
+ * <li>All MBeans will be unregistered from MBeanServer if JMX was enabled
+ * </li>
+ * </ul>
* <p>
- * This should always be called when the core is obtained through:
- * @see CoreContainer.getCore
- * @see CoreContainer.getAdminCore
+ * This should always be called when the core is obtained through {@link CoreContainer#getCore} or {@link CoreContainer#getAdminCore}
* </p>
+ * <p>
* The actual close is performed if the core usage count is 1.
* (A core is created with a usage count of 1).
* If usage count is > 1, the usage count is decreased by 1.
- * If usage count is &lt; 0, this is an error and a runtime exception is thrown.
+ * If usage count is &lt; 0, this is an error and a runtime exception
+ * is thrown.
+ * </p>
*/
public void close() {
int count = refCount.decrementAndGet();