Skip to content

armgit / solr

Public Imported from GitHub
0

Apache Solr open-source search software

SOLR-8302: Remove deprecated methods in trunk

Alan Woodward3fdbc588a9d0
diff --git a/solr/core/src/java/org/apache/solr/core/SolrResourceLoader.java b/solr/core/src/java/org/apache/solr/core/SolrResourceLoader.java
index 695dd9e943e..00276318334 100644
--- a/solr/core/src/java/org/apache/solr/core/SolrResourceLoader.java
+++ b/solr/core/src/java/org/apache/solr/core/SolrResourceLoader.java
@@ -133,24 +133,10 @@ public class SolrResourceLoader implements ResourceLoader,Closeable
this(instanceDir, parent, null);
}
- /** Use {@link #SolrResourceLoader(Path, ClassLoader)} */
- @Deprecated
- public SolrResourceLoader(String instanceDir, ClassLoader parent) {
- this(Paths.get(instanceDir), parent);
- }
-
public SolrResourceLoader(Path instanceDir) {
this(instanceDir, null, null);
}
- /**
- * Use {@link #SolrResourceLoader(Path)}
- */
- @Deprecated
- public SolrResourceLoader(String instanceDir) {
- this(Paths.get(instanceDir));
- }
-
/**
* <p>
* This loader will delegate to the context classloader when possible,
@@ -194,14 +180,6 @@ public class SolrResourceLoader implements ResourceLoader,Closeable
this.coreProperties = coreProperties;
}
- /**
- * Use {@link #SolrResourceLoader(Path, ClassLoader, Properties)}
- */
- @Deprecated
- public SolrResourceLoader(String instanceDir, ClassLoader parent, Properties properties) {
- this(Paths.get(instanceDir), parent, properties);
- }
-
/**
* Adds URLs to the ResourceLoader's internal classloader. This method <b>MUST</b>
* only be called prior to using this ResourceLoader to get any resources, otherwise
@@ -797,12 +775,6 @@ public class SolrResourceLoader implements ResourceLoader,Closeable
public Path getInstancePath() {
return instanceDir;
}
-
- /** Use {@link #getInstancePath()} */
- @Deprecated
- public String getInstanceDir() {
- return instanceDir.toString();
- }
/**
* Keep a list of classes that are allowed to implement each 'Aware' interface