Skip to content

armgit / solr

Public Imported from GitHub
0

Apache Solr open-source search software

SOLR-16082: Move internal variable to private to facilitate removing deprecation. (#3911)

Eric Pughc8d66d862eb3
diff --git a/solr/test-framework/src/java/org/apache/solr/SolrTestCaseJ4.java b/solr/test-framework/src/java/org/apache/solr/SolrTestCaseJ4.java
index 0668215e3ea..09691e4222f 100644
--- a/solr/test-framework/src/java/org/apache/solr/SolrTestCaseJ4.java
+++ b/solr/test-framework/src/java/org/apache/solr/SolrTestCaseJ4.java
@@ -693,11 +693,12 @@ public abstract class SolrTestCaseJ4 extends SolrTestCase {
* <p>Will be set to null by {@link #deleteCore} and re-initialized as needed by {@link
* #createCore}. In the event of a test failure, the contents will be left on disk.
*
+ * <p>Use initAndGetDataDir instead of directly accessing this variable
+ *
* @see #createTempDir(String)
* @see #initAndGetDataDir()
- * @deprecated use initAndGetDataDir instead of directly accessing this variable
*/
- @Deprecated protected static volatile Path initCoreDataDir;
+ private static volatile Path initCoreDataDir;
/**
* Initializes things your test might need