SOLR-1181: Inner classes that don't access the ref to the object that created them should be static

git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@777581 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Mark Robert Miller 2009-05-22 15:35:27 +00:00
parent f25771a197
commit 7d80857e70
4 changed files with 4 additions and 4 deletions

View File

@ -740,7 +740,7 @@ public class SnapPuller {
return nextTime;
}
private class ReplicationHandlerException extends InterruptedException {
private static class ReplicationHandlerException extends InterruptedException {
public ReplicationHandlerException(String message) {
super(message);
}

View File

@ -182,7 +182,7 @@ public class TermVectorComponent extends SearchComponent implements SolrCoreAwar
return result;
}
private class TVMapper extends TermVectorMapper {
private static class TVMapper extends TermVectorMapper {
private NamedList docNL;
private IndexReader reader;
private Set<String> fields;

View File

@ -376,7 +376,7 @@ public class SolrIndexSearcher extends IndexSearcher implements SolrInfoMBean {
* FieldSelector which loads the specified fields, and load all other
* field lazily.
*/
class SetNonLazyFieldSelector implements FieldSelector {
static class SetNonLazyFieldSelector implements FieldSelector {
private Set<String> fieldsToLoad;
SetNonLazyFieldSelector(Set<String> toLoad) {
fieldsToLoad = toLoad;

View File

@ -160,7 +160,7 @@ public abstract class UpdateHandler implements SolrInfoMBean {
public abstract void close() throws IOException;
class DeleteHitCollector extends HitCollector {
static class DeleteHitCollector extends HitCollector {
public int deleted=0;
public final SolrIndexSearcher searcher;