SOLR-1930: remove solr deprecations

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1053107 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Yonik Seeley 2010-12-27 16:55:17 +00:00
parent f16706f50d
commit 88fd3cc410
5 changed files with 1 additions and 66 deletions

View File

@ -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; }

View File

@ -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>();

View File

@ -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();
/**

View File

@ -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:

View File

@ -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);