SOLR-489 - ading some @deprecation javadoc details

git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@631124 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Chris M. Hostetter 2008-02-26 08:19:26 +00:00
parent 9c95415d7d
commit 0c2e3ebdd4
23 changed files with 74 additions and 4 deletions

View File

@ -74,12 +74,18 @@ public class SolrException extends RuntimeException {
logged=true;
}
/**
* @deprecated Use {@link #SolrException(ErrorCode,String)}.
*/
@Deprecated
public SolrException(int code, String msg) {
super(msg);
this.code=code;
}
/**
* @deprecated Use {@link #SolrException(ErrorCode,String,boolean)}.
*/
@Deprecated
public SolrException(int code, String msg, boolean alreadyLogged) {
super(msg);
@ -87,6 +93,9 @@ public class SolrException extends RuntimeException {
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);
@ -94,11 +103,17 @@ public class SolrException extends RuntimeException {
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);

View File

@ -19,6 +19,8 @@ package org.apache.solr.core;
/**
* This class is scheduled for deletion. Please update your code to the moved package.
*
* @deprecated Use org.apache.solr.common.SolrException
*/
@Deprecated
public class SolrException extends org.apache.solr.common.SolrException {

View File

@ -23,6 +23,8 @@ import java.util.*;
/**
* @version $Id$
*
* @deprecated Solr now supports multiple cores and no longer uses a static singleton for SolrCore.
*/
// A Registry to hold a collection of SolrInfo objects

View File

@ -48,8 +48,8 @@ public class RequestHandlerUtils
* Check the request parameters and decide if it should commit or optimize.
* If it does, it will check parameters for "waitFlush" and "waitSearcher"
*
* Use the update processor version
*
* @deprecated Use {@link #handleCommit(UpdateRequestProcessor,SolrParams,boolean)}
*
* @since solr 1.2
*/
@Deprecated

View File

@ -21,6 +21,8 @@ import org.apache.solr.common.params.SolrParams;
/**
* This class is scheduled for deletion. Please update your code to the moved package.
*
* @deprecated Use org.apache.solr.common.params.AppendedSolrParams
*/
@Deprecated
public class AppendedSolrParams extends org.apache.solr.common.params.AppendedSolrParams {

View File

@ -21,6 +21,8 @@ import org.apache.solr.common.params.SolrParams;
/**
* This class is scheduled for deletion. Please update your code to the moved package.
*
* @deprecated Use org.apache.solr.common.params.DefaultSolrParams.
*/
@Deprecated
public class DefaultSolrParams extends org.apache.solr.common.params.DefaultSolrParams {

View File

@ -21,6 +21,8 @@ import java.util.Map;
/**
* This class is scheduled for deletion. Please update your code to the moved package.
*
* @deprecated Use org.apache.solr.common.params.MapSolrParams
*/
@Deprecated
public class MapSolrParams extends org.apache.solr.common.params.MapSolrParams {

View File

@ -21,6 +21,8 @@ import java.util.Map;
/**
* This class is scheduled for deletion. Please update your code to the moved package.
*
* @deprecated Use org.apache.solr.common.params.MultiMapSolrParams.
*/
@Deprecated
public class MultiMapSolrParams extends org.apache.solr.common.params.MultiMapSolrParams {

View File

@ -21,6 +21,8 @@ import org.apache.solr.common.params.SolrParams;
/**
* This class is scheduled for deletion. Please update your code to the moved package.
*
* @deprecated Use org.apache.solr.common.params.RequiredSolrParams.
*/
@Deprecated
public class RequiredSolrParams extends org.apache.solr.common.params.RequiredSolrParams {

View File

@ -23,6 +23,8 @@ import org.apache.solr.common.params.FacetParams;
/**
* This class is scheduled for deletion. Please update your code to the moved package.
*
* @deprecated Use org.apache.solr.common.params.SolrParams.
*/
@Deprecated
public abstract class SolrParams extends org.apache.solr.common.params.SolrParams

View File

@ -43,14 +43,29 @@ import java.util.HashMap;
* @version $Id$
*/
public abstract class SolrQueryRequestBase implements SolrQueryRequest {
/**
* @deprecated Use org.apache.solr.common.params.CommonParams
*/
@Deprecated
public static final String QUERY_NAME="q";
/**
* @deprecated Use org.apache.solr.common.params.CommonParams
*/
@Deprecated
public static final String START_NAME="start";
/**
* @deprecated Use org.apache.solr.common.params.CommonParams
*/
@Deprecated
public static final String ROWS_NAME="rows";
/**
* @deprecated Use org.apache.solr.common.params.CommonParams
*/
@Deprecated
public static final String XSL_NAME="xsl";
/**
* @deprecated Use org.apache.solr.common.params.CommonParams
*/
@Deprecated
public static final String QUERYTYPE_NAME="qt";

View File

@ -19,6 +19,8 @@ package org.apache.solr.util;
/**
* This class is scheduled for deletion. Please update your code to the moved package.
*
* @deprecated Use org.apache.solr.common.util.ContentStream.
*/
@Deprecated
public interface ContentStream extends org.apache.solr.common.util.ContentStream {

View File

@ -19,6 +19,8 @@ package org.apache.solr.util;
/**
* This class is scheduled for deletion. Please update your code to the moved package.
*
* @deprecated Use org.apache.solr.common.util.ContentStreamBase
*/
@Deprecated
public abstract class ContentStreamBase extends org.apache.solr.common.util.ContentStreamBase

View File

@ -19,6 +19,8 @@ package org.apache.solr.util;
/**
* This class is scheduled for deletion. Please update your code to the moved package.
*
* @deprecated Use org.apache.solr.common.util.DOMUtil.
*/
@Deprecated
public class DOMUtil extends org.apache.solr.common.util.DOMUtil {

View File

@ -19,6 +19,8 @@ package org.apache.solr.util;
/**
* This class is scheduled for deletion. Please update your code to the moved package.
*
* @deprecated Use org.apache.solr.common.util.IteratorChain<E>.
*/
@Deprecated
public class IteratorChain<E> extends org.apache.solr.common.util.IteratorChain<E> {

View File

@ -21,6 +21,8 @@ import java.util.List;
/**
* This class is scheduled for deletion. Please update your code to the moved package.
*
* @deprecated Use org.apache.solr.common.util.NamedList<T>.
*/
@Deprecated
public class NamedList<T> extends org.apache.solr.common.util.NamedList<T> {

View File

@ -20,6 +20,8 @@ import java.util.List;
/**
* This class is scheduled for deletion. Please update your code to the moved package.
*
* @deprecated Use org.apache.solr.common.util.SimpleOrderedMap<T>.
*/
@Deprecated
public class SimpleOrderedMap<T> extends org.apache.solr.common.util.SimpleOrderedMap<T> {

View File

@ -95,7 +95,11 @@ public class SolrPluginUtils {
}
/** standard param for field list */
/**
* standard param for field list
*
* @deprecated Use org.apache.solr.common.params.CommonParams.FL.
*/
@Deprecated
public static String FL = org.apache.solr.common.params.CommonParams.FL;

View File

@ -19,6 +19,8 @@ package org.apache.solr.util;
/**
* This class is scheduled for deletion. Please update your code to the moved package.
*
* @deprecated Use org.apache.solr.common.util.StrUtils.
*/
@Deprecated
public class StrUtils extends org.apache.solr.common.util.StrUtils

View File

@ -142,7 +142,7 @@ public class TestHarness {
* Processes an "update" (add, commit or optimize) and
* returns the response as a String.
*
* The better approach is to instanciate a Updatehandler directly
* @deprecated The better approach is to instantiate an Updatehandler directly
*
* @param xml The XML of the update
* @return The XML response to the update

View File

@ -19,6 +19,8 @@ package org.apache.solr.util;
/**
* This class is scheduled for deletion. Please update your code to the moved package.
*
* @deprecated Use org.apache.solr.common.params.UpdateParams.
*/
@Deprecated
public interface UpdateParams extends org.apache.solr.common.params.UpdateParams

View File

@ -19,6 +19,8 @@ package org.apache.solr.util;
/**
* This class is scheduled for deletion. Please update your code to the moved package.
*
* @deprecated Use org.apache.solr.common.util.XML.
*/
@Deprecated
public class XML extends org.apache.solr.common.util.XML {

View File

@ -31,6 +31,8 @@ import org.apache.solr.request.XMLResponseWriter;
/**
* @version $Id$
*
* @deprecated Register a request handler to /update rather then use this servlet. Add: &lt;requestHandler name="/update" class="solr.XmlUpdateRequestHandler" > to your solrconfig.xml
*/
@Deprecated
public class SolrUpdateServlet extends HttpServlet {