Skip to content

Apache Lucene open-source search software

SOLR-1930: remove solr deprecations

Yonik Seeley88fd3cc41061
diff --git a/solr/src/common/org/apache/solr/common/SolrException.java b/solr/src/common/org/apache/solr/common/SolrException.java
index 7853edf764c..8df79c4ab28 100644
--- a/solr/src/common/org/apache/solr/common/SolrException.java
+++ b/solr/src/common/org/apache/solr/common/SolrException.java
@@ -93,43 +93,6 @@ public class SolrException extends RuntimeException {
this.code=code;
}
- /**
- * @deprecated Use {@link #SolrException(ErrorCode,String,boolean)}.
- */
- @Deprecated
- public SolrException(int code, String msg, boolean alreadyLogged) {
- super(msg);
- this.code=code;
- this.logged=alreadyLogged;
- }
-
- /**
- * @deprecated Use {@link #SolrException(ErrorCode,String,Throwable,boolean)}.
- */
- @Deprecated
- public SolrException(int code, String msg, Throwable th, boolean alreadyLogged) {
- super(msg,th);
- this.code=code;
- logged=alreadyLogged;
- }
-
- /**
- * @deprecated Use {@link #SolrException(ErrorCode,String,Throwable)}.
- */
- @Deprecated
- public SolrException(int code, String msg, Throwable th) {
- this(code,msg,th,true);
- }
-
- /**
- * @deprecated Use {@link #SolrException(ErrorCode,Throwable)}.
- */
- @Deprecated
- public SolrException(int code, Throwable th) {
- super(th);
- this.code=code;
- logged=true;
- }
int code=0;
public int code() { return code; }
diff --git a/solr/src/common/org/apache/solr/common/params/SolrParams.java b/solr/src/common/org/apache/solr/common/params/SolrParams.java
index 55990ef6296..b0315259f75 100644
--- a/solr/src/common/org/apache/solr/common/params/SolrParams.java
+++ b/solr/src/common/org/apache/solr/common/params/SolrParams.java
@@ -249,16 +249,6 @@ public abstract class SolrParams implements Serializable {
}
}
-
- /** how to transform a String into a boolean... more flexible than
- * Boolean.parseBoolean() to enable easier integration with html forms.
- * @deprecated Use org.apache.solr.common.util.StrUtils.parseBool
- */
- @Deprecated
- protected boolean parseBool(String s) {
- return StrUtils.parseBool(s);
- }
-
/** Create a Map<String,String> from a NamedList given no keys are repeated */
public static Map<String,String> toMap(NamedList params) {
HashMap<String,String> map = new HashMap<String,String>();
diff --git a/solr/src/java/org/apache/solr/search/DocSet.java b/solr/src/java/org/apache/solr/search/DocSet.java
index 2135808e6db..a053e057a81 100644
--- a/solr/src/java/org/apache/solr/search/DocSet.java
+++ b/solr/src/java/org/apache/solr/search/DocSet.java
@@ -89,10 +89,7 @@ public interface DocSet /* extends Collection<Integer> */ {
*
* @return
* An OpenBitSet with the bit number of every docid set in the set.
- *
- * @deprecated Use {@link #iterator()} to access all docs instead.
*/
- @Deprecated
public OpenBitSet getBits();
/**
diff --git a/solr/src/java/org/apache/solr/search/SolrIndexSearcher.java b/solr/src/java/org/apache/solr/search/SolrIndexSearcher.java
index 31b1e68f641..569de901800 100644
--- a/solr/src/java/org/apache/solr/search/SolrIndexSearcher.java
+++ b/solr/src/java/org/apache/solr/search/SolrIndexSearcher.java
@@ -94,14 +94,6 @@ public class SolrIndexSearcher extends IndexSearcher implements SolrInfoMBean {
private final Collection<String> fieldNames;
private Collection<String> storedHighlightFieldNames;
- /** Creates a searcher searching the index in the named directory.
- *
- * @deprecated use alternate constructor
- */
- @Deprecated
- public SolrIndexSearcher(SolrCore core, IndexSchema schema, String name, String path, boolean enableCache) throws IOException {
- this(core, schema,name, core.getIndexReaderFactory().newReader(core.getDirectoryFactory().open(path), false), true, enableCache);
- }
/*
* Creates a searcher searching the index in the provided directory. Note:
diff --git a/solr/src/java/org/apache/solr/search/function/ValueSource.java b/solr/src/java/org/apache/solr/search/function/ValueSource.java
index 60a6d1d6d30..6db9f73c10f 100644
--- a/solr/src/java/org/apache/solr/search/function/ValueSource.java
+++ b/solr/src/java/org/apache/solr/search/function/ValueSource.java
@@ -41,18 +41,11 @@ import java.util.Collections;
*/
public abstract class ValueSource implements Serializable {
- @Deprecated
- public DocValues getValues(IndexReader reader) throws IOException {
- return getValues(null, reader);
- }
-
/**
* Gets the values for this reader and the context that was previously
* passed to createWeight()
*/
- public DocValues getValues(Map context, IndexReader reader) throws IOException {
- return getValues(reader);
- }
+ public abstract DocValues getValues(Map context, IndexReader reader) throws IOException;
public abstract boolean equals(Object o);