deprecating unused functions with a better alternative. see SOLR-183

git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@533536 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Ryan McKinley 2007-04-29 17:46:52 +00:00
parent b3cd55c803
commit 398ef586b8
1 changed files with 16 additions and 1 deletions

View File

@ -91,7 +91,10 @@ public abstract class SolrQueryRequestBase implements SolrQueryRequest {
return params.getParams(name);
}
/**
* use getParams().required().getInt( name ) instead
*/
@Deprecated
public int getIntParam(String name) {
String s = getParam(name);
if (s==null) {
@ -100,11 +103,19 @@ public abstract class SolrQueryRequestBase implements SolrQueryRequest {
return Integer.parseInt(s);
}
/**
* use getParams().required().getInt( name ) instead
*/
@Deprecated
public int getIntParam(String name, int defval) {
String s = getParam(name);
return s==null ? defval : Integer.parseInt(s);
}
/**
* use getParams().required().getParam( name ) instead
*/
@Deprecated
public String getStrParam(String name) {
String s = getParam(name);
if (s==null) {
@ -113,6 +124,10 @@ public abstract class SolrQueryRequestBase implements SolrQueryRequest {
return s;
}
/**
* use getParams().required().getParam( name ) instead
*/
@Deprecated
public String getStrParam(String name, String defval) {
String s = getParam(name);
return s==null ? defval : s;