SOLR-9258: Fix precommit

This commit is contained in:
Joel Bernstein 2016-09-29 18:03:03 -04:00
parent 9cd6437d4b
commit 8f00bcb1a0
2 changed files with 4 additions and 16 deletions

View File

@ -19,7 +19,6 @@ package org.apache.solr.handler;
import java.io.IOException; import java.io.IOException;
import java.util.HashMap; import java.util.HashMap;
import java.util.List; import java.util.List;
import java.util.Set;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Map; import java.util.Map;
import java.util.Locale; import java.util.Locale;

View File

@ -17,32 +17,21 @@
package org.apache.solr.client.solrj.io; package org.apache.solr.client.solrj.io;
import java.io.IOException; import java.io.IOException;
import java.io.Serializable;
import java.lang.invoke.MethodHandles;
import java.util.Collections;
import java.util.Date; import java.util.Date;
import java.util.LinkedHashMap; import java.util.LinkedHashMap;
import java.util.Map; import java.util.Map;
import java.util.HashMap;
import org.apache.solr.client.solrj.SolrClient;
import org.apache.solr.client.solrj.impl.CloudSolrClient;
import org.apache.solr.client.solrj.impl.HttpSolrClient;
import org.apache.solr.client.solrj.io.stream.CloudSolrStream; import org.apache.solr.client.solrj.io.stream.CloudSolrStream;
import org.apache.solr.client.solrj.io.stream.StreamContext; import org.apache.solr.client.solrj.io.stream.StreamContext;
import org.apache.solr.client.solrj.io.stream.TopicStream;
import org.apache.solr.common.params.ModifiableSolrParams; import org.apache.solr.common.params.ModifiableSolrParams;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/** /**
* The Model cache keeps a local in-memory copy of models * The Model cache keeps a local in-memory copy of models
*/ */
public class ModelCache implements Serializable { public class ModelCache {
private final LRU models; private LRU models;
private String defaultZkHost; private String defaultZkHost;
private SolrClientCache solrClientCache; private SolrClientCache solrClientCache;
@ -117,7 +106,7 @@ public class ModelCache implements Serializable {
} }
} }
private static class Model { private class Model {
private Tuple tuple; private Tuple tuple;
private long lastChecked; private long lastChecked;
@ -135,7 +124,7 @@ public class ModelCache implements Serializable {
} }
} }
private static class LRU extends LinkedHashMap<String, Model> { private class LRU extends LinkedHashMap<String, Model> {
private int maxSize; private int maxSize;