SOLR-3329: Dropping getSourceID() from SolrInfoMBean and most of the svn:keywords

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1310219 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Ryan McKinley 2012-04-06 08:13:15 +00:00
parent 61a354e079
commit 81ddd8cbe2
86 changed files with 24 additions and 603 deletions

View File

@ -477,6 +477,9 @@ Other Changes
* SOLR-3159: Upgrade example and tests to run with Jetty 8 (ryan)
* SOLR-3329: Dropped getSourceID() from SolrInfoMBean and using
getClass().getPackage().getSpecificationVersion() for Version. (ryan)
Documentation
----------------------

View File

@ -254,19 +254,8 @@ public class ClusteringComponent extends SearchComponent implements SolrCoreAwar
return "A Clustering component";
}
@Override
public String getVersion() {
return "$Revision$";
}
@Override
public String getSourceId() {
return "$Id$";
}
@Override
public String getSource() {
return "$URL$";
}
}

View File

@ -335,16 +335,6 @@ public class DataImportHandler extends RequestHandlerBase implements
return DataImporter.MSG.JMX_DESC;
}
@Override
public String getSourceId() {
return "$Id$";
}
@Override
public String getVersion() {
return "1.0";
}
@Override
public String getSource() {
return "$URL$";

View File

@ -22,7 +22,6 @@ package org.apache.solr.handler.dataimport;
* <p/>
* <b>This API is experimental and subject to change</b>
* <p/>
* $Id$
*
* @since solr 1.3
*/

View File

@ -122,19 +122,9 @@ public class ExtractingRequestHandler extends ContentStreamHandlerBase implement
return "Add/Update Rich document";
}
@Override
public String getVersion() {
return "$Revision:$";
}
@Override
public String getSourceId() {
return "$Id:$";
}
@Override
public String getSource() {
return "$URL:$";
return "$URL$";
}
}

View File

@ -30,7 +30,6 @@ import org.apache.lucene.analysis.no.NorwegianLightStemFilter;
* &lt;filter class="solr.NorwegianLightStemFilterFactory"/&gt;
* &lt;/analyzer&gt;
* &lt;/fieldType&gt;</pre>
* @version $Id$
*/
public class NorwegianLightStemFilterFactory extends BaseTokenFilterFactory {
public TokenStream create(TokenStream input) {

View File

@ -30,7 +30,6 @@ import org.apache.lucene.analysis.no.NorwegianMinimalStemFilter;
* &lt;filter class="solr.NorwegianMinimalStemFilterFactory"/&gt;
* &lt;/analyzer&gt;
* &lt;/fieldType&gt;</pre>
* @version $Id$
*/
public class NorwegianMinimalStemFilterFactory extends BaseTokenFilterFactory {
public TokenStream create(TokenStream input) {

View File

@ -207,7 +207,7 @@ public final class RequestHandlers {
*
* @since solr 1.2
*/
public static final class LazyRequestHandlerWrapper implements SolrRequestHandler, SolrInfoMBean
public static final class LazyRequestHandlerWrapper implements SolrRequestHandler
{
private final SolrCore core;
private String _className;
@ -279,19 +279,10 @@ public final class RequestHandlers {
}
public String getVersion() {
String rev = "$Revision$";
if( _handler != null ) {
rev += " :: " + _handler.getVersion();
}
return rev;
}
public String getSourceId() {
String rev = "$Id$";
if( _handler != null ) {
rev += " :: " + _handler.getSourceId();
return _handler.getVersion();
}
return rev;
return null;
}
public String getSource() {

View File

@ -1916,10 +1916,6 @@ public final class SolrCore implements SolrInfoMBean {
return Category.CORE;
}
public String getSourceId() {
return "$Id$";
}
public String getSource() {
return "$URL$";
}

View File

@ -43,8 +43,6 @@ public interface SolrInfoMBean {
public String getDescription();
/** Purpose of this Class */
public Category getCategory();
/** CVS Id, SVN Id, etc */
public String getSourceId();
/** CVS Source, SVN Source, etc */
public String getSource();
/**

View File

@ -146,18 +146,8 @@ public class BinaryUpdateRequestHandler extends ContentStreamHandlerBase {
return "Add/Update multiple documents with javabin format";
}
@Override
public String getSourceId() {
return "$Id$";
}
@Override
public String getSource() {
return "$URL$";
}
@Override
public String getVersion() {
return "$Revision$";
}
}

View File

@ -59,16 +59,6 @@ public class CSVRequestHandler extends ContentStreamHandlerBase {
return "Add/Update multiple documents with CSV formatted rows";
}
@Override
public String getVersion() {
return "$Revision$";
}
@Override
public String getSourceId() {
return "$Id$";
}
@Override
public String getSource() {
return "$URL$";

View File

@ -120,16 +120,6 @@ public class DocumentAnalysisRequestHandler extends AnalysisRequestHandlerBase {
return "Provides a breakdown of the analysis process of provided documents";
}
@Override
public String getVersion() {
return "$Revision$";
}
@Override
public String getSourceId() {
return "$Id$";
}
@Override
public String getSource() {
return "$URL$";

View File

@ -67,16 +67,6 @@ public class DumpRequestHandler extends RequestHandlerBase
return "Dump handler (debug)";
}
@Override
public String getVersion() {
return "$Revision$";
}
@Override
public String getSourceId() {
return "$Id$";
}
@Override
public String getSource() {
return "$URL$";

View File

@ -106,16 +106,6 @@ public class FieldAnalysisRequestHandler extends AnalysisRequestHandlerBase {
return "Provide a breakdown of the analysis process of field/query text";
}
@Override
public String getVersion() {
return "$Revision$";
}
@Override
public String getSourceId() {
return "$Id$";
}
@Override
public String getSource() {
return "$URL$";

View File

@ -47,16 +47,6 @@ public class JsonUpdateRequestHandler extends ContentStreamHandlerBase {
return "Add documents with JSON";
}
@Override
public String getVersion() {
return "$Revision$";
}
@Override
public String getSourceId() {
return "$Id$";
}
@Override
public String getSource() {
return "$URL$";

View File

@ -422,21 +422,11 @@ public class MoreLikeThisHandler extends RequestHandlerBase
//////////////////////// SolrInfoMBeans methods //////////////////////
@Override
public String getVersion() {
return "$Revision$";
}
@Override
public String getDescription() {
return "Solr MoreLikeThis";
}
@Override
public String getSourceId() {
return "$Id$";
}
@Override
public String getSource() {
return "$URL$";

View File

@ -82,21 +82,11 @@ public class PingRequestHandler extends RequestHandlerBase
//////////////////////// SolrInfoMBeans methods //////////////////////
@Override
public String getVersion() {
return "$Revision$";
}
@Override
public String getDescription() {
return "Reports application health to a load-balancer";
}
@Override
public String getSourceId() {
return "$Id$";
}
@Override
public String getSource() {
return "$URL$";

View File

@ -35,21 +35,11 @@ public class RealTimeGetHandler extends SearchHandler {
//////////////////////// SolrInfoMBeans methods //////////////////////
@Override
public String getVersion() {
return "$Revision$";
}
@Override
public String getDescription() {
return "The realtime get handler";
}
@Override
public String getSourceId() {
return "$Id$";
}
@Override
public String getSource() {
return "$URL$";

View File

@ -494,21 +494,11 @@ public class ReplicationHandler extends RequestHandlerBase implements SolrCoreAw
return "ReplicationHandler provides replication of index and configuration files from Master to Slaves";
}
@Override
public String getSourceId() {
return "$Id$";
}
@Override
public String getSource() {
return "$URL$";
}
@Override
public String getVersion() {
return "$Revision$";
}
private long[] getIndexVersion() {
long version[] = new long[2];
RefCounted<SolrIndexSearcher> searcher = core.getSearcher();

View File

@ -156,9 +156,11 @@ public abstract class RequestHandlerBase implements SolrRequestHandler, SolrInfo
}
public abstract String getDescription();
public abstract String getSourceId();
public abstract String getSource();
public abstract String getVersion();
public String getVersion() {
return getClass().getPackage().getSpecificationVersion();
}
public Category getCategory() {
return Category.QUERYHANDLER;

View File

@ -45,21 +45,11 @@ public class StandardRequestHandler extends SearchHandler
{
//////////////////////// SolrInfoMBeans methods //////////////////////
@Override
public String getVersion() {
return "$Revision$";
}
@Override
public String getDescription() {
return "The standard Solr request handler";
}
@Override
public String getSourceId() {
return "$Id$";
}
@Override
public String getSource() {
return "$URL$";

View File

@ -87,16 +87,6 @@ public class XmlUpdateRequestHandler extends ContentStreamHandlerBase {
return "Add documents with XML";
}
@Override
public String getVersion() {
return "$Revision$";
}
@Override
public String getSourceId() {
return "$Id$";
}
@Override
public String getSource() {
return "$URL$";

View File

@ -78,20 +78,8 @@ public class XsltUpdateRequestHandler extends ContentStreamHandlerBase {
return "Add documents with XML, transforming with XSLT first";
}
@Override
public String getVersion() {
return "$Revision$";
}
@Override
public String getSourceId() {
return "$Id$";
}
@Override
public String getSource() {
return "$URL$";
}
}

View File

@ -112,13 +112,9 @@ public class AdminHandlers implements SolrCoreAware, SolrRequestHandler
public String getDescription() {
return "Register Standard Admin Handlers";
}
public String getVersion() {
return "$Revision$";
}
public String getSourceId() {
return "$Id$";
return getClass().getPackage().getSpecificationVersion();
}
public String getSource() {

View File

@ -855,16 +855,6 @@ public class CoreAdminHandler extends RequestHandlerBase {
return "Manage Multiple Solr Cores";
}
@Override
public String getVersion() {
return "$Revision$";
}
@Override
public String getSourceId() {
return "$Id$";
}
@Override
public String getSource() {
return "$URL$";

View File

@ -391,16 +391,6 @@ public class LogLevelHandler extends RequestHandlerBase {
return "Lucene Log Level info";
}
@Override
public String getVersion() {
return "$Revision$";
}
@Override
public String getSourceId() {
return "$Id$";
}
@Override
public String getSource() {
return "$URL$";

View File

@ -620,16 +620,6 @@ public class LukeRequestHandler extends RequestHandlerBase
return "Lucene Index Browser. Inspired and modeled after Luke: http://www.getopt.org/luke/";
}
@Override
public String getVersion() {
return "$Revision$";
}
@Override
public String getSourceId() {
return "$Id$";
}
@Override
public String getSource() {
return "$URL$";

View File

@ -70,8 +70,6 @@ public class PluginInfoHandler extends RequestHandlerBase
info.add( "name", (m.getName() !=null ? m.getName() : na) );
info.add( "version", (m.getVersion() !=null ? m.getVersion() : na) );
info.add( "description", (m.getDescription()!=null ? m.getDescription() : na) );
info.add( "sourceId", (m.getSourceId() !=null ? m.getSourceId() : na) );
info.add( "source", (m.getSource() !=null ? m.getSource() : na) );
URL[] urls = m.getDocs();
@ -99,16 +97,6 @@ public class PluginInfoHandler extends RequestHandlerBase
return "Registry";
}
@Override
public String getVersion() {
return "$Revision$";
}
@Override
public String getSourceId() {
return "$Id$";
}
@Override
public String getSource() {
return "$URL$";

View File

@ -54,16 +54,6 @@ public class PropertiesRequestHandler extends RequestHandlerBase
return "Get System Properties";
}
@Override
public String getVersion() {
return "$Revision$";
}
@Override
public String getSourceId() {
return "$Id$";
}
@Override
public String getSource() {
return "$URL$";

View File

@ -312,16 +312,6 @@ public class ShowFileRequestHandler extends RequestHandlerBase
return "Admin Get File -- view config files directly";
}
@Override
public String getVersion() {
return "$Revision$";
}
@Override
public String getSourceId() {
return "$Id$";
}
@Override
public String getSource() {
return "$URL$";

View File

@ -86,7 +86,6 @@ public class SolrInfoMBeanHandler extends RequestHandlerBase {
mBeanInfo.add("class", m.getName());
mBeanInfo.add("version", m.getVersion());
mBeanInfo.add("description", m.getDescription());
mBeanInfo.add("srcId", m.getSourceId());
mBeanInfo.add("src", m.getSource());
// Use an external form
@ -112,18 +111,8 @@ public class SolrInfoMBeanHandler extends RequestHandlerBase {
return "Get Info (and statistics) about all registered SolrInfoMBeans";
}
@Override
public String getSourceId() {
return "$Id$";
}
@Override
public String getSource() {
return "$URL$";
}
@Override
public String getVersion() {
return "$Revision$";
}
}

View File

@ -285,16 +285,6 @@ public class SystemInfoHandler extends RequestHandlerBase
return "Get System Info";
}
@Override
public String getVersion() {
return "$Revision$";
}
@Override
public String getSourceId() {
return "$Id$";
}
@Override
public String getSource() {
return "$URL$";

View File

@ -136,16 +136,6 @@ public class ThreadDumpHandler extends RequestHandlerBase
return "Thread Dump";
}
@Override
public String getVersion() {
return "$Revision$";
}
@Override
public String getSourceId() {
return "$Id$";
}
@Override
public String getSource() {
return "$URL$";

View File

@ -248,16 +248,6 @@ public class DebugComponent extends SearchComponent
return "Debug Information";
}
@Override
public String getVersion() {
return "$Revision$";
}
@Override
public String getSourceId() {
return "$Id$";
}
@Override
public String getSource() {
return "$URL$";

View File

@ -591,16 +591,6 @@ public class FacetComponent extends SearchComponent
return "Handle Faceting";
}
@Override
public String getVersion() {
return "$Revision$";
}
@Override
public String getSourceId() {
return "$Id$";
}
@Override
public String getSource() {
return "$URL$";

View File

@ -202,16 +202,6 @@ public class HighlightComponent extends SearchComponent implements PluginInfoIni
return "Highlighting";
}
@Override
public String getVersion() {
return "$Revision$";
}
@Override
public String getSourceId() {
return "$Id$";
}
@Override
public String getSource() {
return "$URL$";

View File

@ -116,16 +116,6 @@ public class MoreLikeThisComponent extends SearchComponent
return "More Like This";
}
@Override
public String getVersion() {
return "$Revision$";
}
@Override
public String getSourceId() {
return "$Id$";
}
@Override
public String getSource() {
return "$URL$";

View File

@ -244,15 +244,7 @@ public class PivotFacetHelper
// return "Handle Pivot (multi-level) Faceting";
// }
//
// public String getSourceId() {
// return "$Id$";
// }
//
// public String getSource() {
// return "$URL$";
// }
//
// public String getVersion() {
// return "$Revision$";
// }
}

View File

@ -999,16 +999,6 @@ public class QueryComponent extends SearchComponent
return "query";
}
@Override
public String getVersion() {
return "$Revision$";
}
@Override
public String getSourceId() {
return "$Id$";
}
@Override
public String getSource() {
return "$URL$";

View File

@ -460,16 +460,6 @@ public class QueryElevationComponent extends SearchComponent implements SolrCore
return "Query Boosting -- boost particular documents for a given query";
}
@Override
public String getVersion() {
return "$Revision$";
}
@Override
public String getSourceId() {
return "$Id$";
}
@Override
public String getSource() {
return "$URL$";

View File

@ -397,16 +397,6 @@ public class RealTimeGetComponent extends SearchComponent
return "query";
}
@Override
public String getVersion() {
return "$Revision$";
}
@Override
public String getSourceId() {
return "$Id$";
}
@Override
public String getSource() {
return "$URL$";
@ -418,7 +408,6 @@ public class RealTimeGetComponent extends SearchComponent
}
///////////////////////////////////////////////////////////////////////////////////
// Returns last versions added to index
///////////////////////////////////////////////////////////////////////////////////

View File

@ -86,9 +86,11 @@ public abstract class SearchComponent implements SolrInfoMBean, NamedListInitial
}
public abstract String getDescription();
public abstract String getSourceId();
public abstract String getSource();
public abstract String getVersion();
public String getVersion() {
return getClass().getPackage().getSpecificationVersion();
}
public Category getCategory() {
return Category.OTHER;

View File

@ -333,16 +333,6 @@ public class SearchHandler extends RequestHandlerBase implements SolrCoreAware ,
return sb.toString();
}
@Override
public String getVersion() {
return "$Revision$";
}
@Override
public String getSourceId() {
return "$Id$";
}
@Override
public String getSource() {
return "$URL$";

View File

@ -654,16 +654,6 @@ public class SpellCheckComponent extends SearchComponent implements SolrCoreAwar
return "A Spell Checker component";
}
@Override
public String getVersion() {
return "$Revision$";
}
@Override
public String getSourceId() {
return "$Id$";
}
@Override
public String getSource() {
return "$URL$";

View File

@ -153,16 +153,6 @@ public class StatsComponent extends SearchComponent {
return "Calculate Statistics";
}
@Override
public String getVersion() {
return "$Revision$";
}
@Override
public String getSourceId() {
return "$Id$";
}
@Override
public String getSource() {
return "$URL$";

View File

@ -412,16 +412,6 @@ public class TermVectorComponent extends SearchComponent implements SolrCoreAwar
}
@Override
public String getVersion() {
return "$Revision$";
}
@Override
public String getSourceId() {
return "$Id$";
}
@Override
public String getSource() {
return "$URL$";

View File

@ -472,16 +472,6 @@ public class TermsComponent extends SearchComponent {
}
}
@Override
public String getVersion() {
return "$Revision$";
}
@Override
public String getSourceId() {
return "$Id$";
}
@Override
public String getSource() {
return "$URL$";

View File

@ -77,15 +77,4 @@ public class BreakIteratorBoundaryScanner extends SolrBoundaryScanner {
public String getSource() {
return "$URL$";
}
@Override
public String getSourceId() {
return "$Id$";
}
@Override
public String getVersion() {
return "$Revision$";
}
}

View File

@ -44,14 +44,4 @@ public class DefaultEncoder extends HighlightingPluginBase implements
public String getSource() {
return "$URL$";
}
@Override
public String getSourceId() {
return "$Id$";
}
@Override
public String getVersion() {
return "$Revision$";
}
}

View File

@ -46,16 +46,6 @@ public class GapFragmenter extends HighlightingPluginBase implements SolrFragmen
return "GapFragmenter";
}
@Override
public String getVersion() {
return "$Revision$";
}
@Override
public String getSourceId() {
return "$Id$";
}
@Override
public String getSource() {
return "$URL$";

View File

@ -49,9 +49,11 @@ public abstract class HighlightingPluginBase implements SolrInfoMBean
}
public abstract String getDescription();
public abstract String getSourceId();
public abstract String getSource();
public abstract String getVersion();
public String getVersion() {
return getClass().getPackage().getSpecificationVersion();
}
public Category getCategory()
{

View File

@ -44,14 +44,4 @@ public class HtmlEncoder extends HighlightingPluginBase implements SolrEncoder {
public String getSource() {
return "$URL$";
}
@Override
public String getSourceId() {
return "$Id$";
}
@Override
public String getVersion() {
return "$Revision$";
}
}

View File

@ -45,16 +45,6 @@ public class HtmlFormatter extends HighlightingPluginBase implements SolrFormatt
return "HtmlFormatter";
}
@Override
public String getVersion() {
return "$Revision$";
}
@Override
public String getSourceId() {
return "$Id$";
}
@Override
public String getSource() {
return "$URL$";

View File

@ -93,16 +93,6 @@ public class RegexFragmenter extends HighlightingPluginBase implements SolrFragm
return "RegexFragmenter (" + defaultPatternRaw + ")";
}
@Override
public String getVersion() {
return "$Revision$";
}
@Override
public String getSourceId() {
return "$Id$";
}
@Override
public String getSource() {
return "$URL$";

View File

@ -45,14 +45,4 @@ public class ScoreOrderFragmentsBuilder extends SolrFragmentsBuilder {
public String getSource() {
return "$URL$";
}
@Override
public String getSourceId() {
return "$Id$";
}
@Override
public String getVersion() {
return "$Revision$";
}
}

View File

@ -48,15 +48,4 @@ public class SimpleBoundaryScanner extends SolrBoundaryScanner {
public String getSource() {
return "$URL$";
}
@Override
public String getSourceId() {
return "$Id$";
}
@Override
public String getVersion() {
return "$Revision$";
}
}

View File

@ -46,14 +46,4 @@ public class SimpleFragListBuilder extends HighlightingPluginBase implements
public String getSource() {
return "$URL$";
}
@Override
public String getSourceId() {
return "$Id$";
}
@Override
public String getVersion() {
return "$Revision$";
}
}

View File

@ -45,14 +45,4 @@ public class SimpleFragmentsBuilder extends SolrFragmentsBuilder {
public String getSource() {
return "$URL$";
}
@Override
public String getSourceId() {
return "$Id$";
}
@Override
public String getVersion() {
return "$Revision$";
}
}

View File

@ -46,14 +46,4 @@ public class SingleFragListBuilder extends HighlightingPluginBase implements
public String getSource() {
return "$URL$";
}
@Override
public String getSourceId() {
return "$Id$";
}
@Override
public String getVersion() {
return "$Revision$";
}
}

View File

@ -28,7 +28,6 @@ import java.util.List;
* The CSVConfig is used to configure the CSV writer
*
* @author Martin van den Bemt
* @version $Id$
*/
public class CSVConfig {

View File

@ -26,7 +26,6 @@ import java.io.InputStreamReader;
* Tries to guess a config based on an InputStream.
*
* @author Martin van den Bemt
* @version $Id$
*/
public class CSVConfigGuesser {

View File

@ -22,7 +22,6 @@ package org.apache.solr.internal.csv.writer;
/**
*
* @author Martin van den Bemt
* @version $Id$
*/
public class CSVField {

View File

@ -27,7 +27,6 @@ import java.util.Map;
* CSVWriter
*
* @author Martin van den Bemt
* @version $Id$
*/
public class CSVWriter {

View File

@ -200,10 +200,6 @@ public class FastLRUCache<K,V> extends SolrCacheBase implements SolrCache<K,V> {
return Category.CACHE;
}
public String getSourceId() {
return "$Id$";
}
public String getSource() {
return "$URL$";
}

View File

@ -40,7 +40,6 @@ import java.util.concurrent.CopyOnWriteArrayList;
* <p/>
* <b>This API is experimental and subject to change</b>
*
* @version $Id$
* @see org.apache.solr.util.ConcurrentLFUCache
* @see org.apache.solr.search.SolrCache
* @since solr 3.6
@ -208,10 +207,6 @@ public class LFUCache<K, V> implements SolrCache<K, V> {
return Category.CACHE;
}
public String getSourceId() {
return "$Id$";
}
public String getSource() {
return "$URL$";
}

View File

@ -226,10 +226,6 @@ public class LRUCache<K,V> extends SolrCacheBase implements SolrCache<K,V> {
return Category.CACHE;
}
public String getSourceId() {
return "$Id$";
}
public String getSource() {
return "$URL$";
}

View File

@ -46,9 +46,6 @@ public class SolrFieldCacheMBean implements SolrInfoMBean {
+ "this is **NOT** a cache that is managed by Solr.";
}
public Category getCategory() { return Category.CACHE; }
public String getSourceId() {
return "$Id$";
}
public String getSource() {
return "$URL$";
}

View File

@ -1987,10 +1987,6 @@ public class SolrIndexSearcher extends IndexSearcher implements Closeable,SolrIn
return Category.CORE;
}
public String getSourceId() {
return "$Id$";
}
public String getSource() {
return "$URL$";
}

View File

@ -329,15 +329,5 @@ public class FileFloatSource extends ValueSource {
public String getSource() {
return "$URL$";
}
@Override
public String getSourceId() {
return "$Id$";
}
@Override
public String getVersion() {
return "$Revision$";
}
}
}

View File

@ -621,10 +621,6 @@ public class DirectUpdateHandler2 extends UpdateHandler implements SolrCoreState
return Category.UPDATEHANDLER;
}
public String getSourceId() {
return "$Id$";
}
public String getSource() {
return "$URL$";
}

View File

@ -33,7 +33,6 @@ import java.util.List;
/**
* This config object encapsulates IndexWriter config params,
* defined in the &lt;indexConfig&gt; section of solrconfig.xml
* @version $Id$
*/
public class SolrIndexConfig {
public static final Logger log = LoggerFactory.getLogger(SolrIndexConfig.class);

View File

@ -38,7 +38,6 @@ import java.util.concurrent.locks.ReentrantLock;
* <p/>
* <b>This API is experimental and subject to change</b>
*
* @version $Id$
* @since solr 1.6
*/
public class ConcurrentLFUCache<K, V> {

View File

@ -283,12 +283,8 @@ public class BasicFunctionalityTest extends SolrTestCaseJ4 {
@Override
public String getDescription() { return tmp; }
@Override
public String getSourceId() { return tmp; }
@Override
public String getSource() { return tmp; }
@Override
public String getVersion() { return tmp; }
@Override
public void handleRequestBody
( SolrQueryRequest req, SolrQueryResponse rsp ) {
throw new RuntimeException(tmp);

View File

@ -64,9 +64,10 @@ public class SolrInfoMBeanTest extends SolrTestCaseJ4
assertNotNull( info.getName() );
assertNotNull( info.getDescription() );
assertNotNull( info.getSource() );
assertNotNull( info.getSourceId() );
assertNotNull( info.getVersion() );
assertNotNull( info.getCategory() );
// Make sure the URL has the classname in it
//assertTrue(info.getSource(), info.getSource().indexOf(info.getClass().getSimpleName()+".java")>0 );
if( info instanceof LRUCache ) {
continue;

View File

@ -52,24 +52,12 @@ public class MockQuerySenderListenerReqHandler extends RequestHandlerBase {
return result;
}
@Override
public String getSourceId() {
String result = null;
return result;
}
@Override
public String getSource() {
String result = null;
return result;
}
@Override
public String getVersion() {
String result = null;
return result;
}
@Override
public NamedList<Object> getStatistics() {
NamedList<Object> lst = super.getStatistics();

View File

@ -230,6 +230,4 @@ class EmptyRequestHandler extends RequestHandlerBase
@Override public String getDescription() { return null; }
@Override public String getSource() { return null; }
@Override public String getSourceId() { return null; }
@Override public String getVersion() { return null; }
}

View File

@ -156,10 +156,6 @@ public class TestJmxMonitoredMap extends LuceneTestCase {
public NamedList getStatistics() {
return null;
}
public String getSourceId() {
return "mock";
}
}
}

View File

@ -32,7 +32,6 @@ import java.util.Map;
/**
* Test for LFUCache
*
* @version $Id: TestFastLFUCache.java 1170772 2011-09-14 19:09:56Z sarowe $
* @see org.apache.solr.search.LFUCache
* @since solr 3.6
*/

View File

@ -37,7 +37,6 @@ import java.nio.CharBuffer;
/**
* @author yonik
* @version $Id: CharArr.java 583538 2007-10-10 16:53:02Z yonik $
*/
public class CharArr implements CharSequence, Appendable {
protected char[] buf;

View File

@ -20,7 +20,6 @@ package org.apache.noggit;
/**
* @author yonik
* @version $Id: CharUtil.java 479919 2006-11-28 05:53:55Z yonik $
*/
public class CharUtil {

View File

@ -22,7 +22,6 @@ import java.io.Reader;
/**
* @author yonik
* @version $Id: JSONParser.java 1099557 2011-05-04 18:54:26Z yonik $
*/
public class JSONParser {

View File

@ -19,7 +19,6 @@ package org.apache.noggit;
/**
* @author yonik
* @version $Id: JSONUtil.java 1209632 2011-12-02 18:48:42Z yonik $
*/
public class JSONUtil {

View File

@ -21,7 +21,6 @@ import java.util.*;
/**
* @author yonik
* @version $Id: JSONWriter.java 1211150 2011-12-06 21:10:01Z yonik $
*/
public class JSONWriter {

View File

@ -24,7 +24,6 @@ import java.math.BigInteger;
/**
* @author yonik
* @version $Id$
*/
public class ObjectBuilder {

View File

@ -23,7 +23,6 @@ import org.apache.lucene.util.LuceneTestCase;
import org.apache.solr.common.util.XML;
/** Test (some of the) character escaping functions of the XML class
* $Id$
*/
public class TestXMLEscaping extends LuceneTestCase {