mirror of https://github.com/apache/lucene.git
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:
parent
f25771a197
commit
7d80857e70
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue