Organize imports
Change-Id: I42d6e3acf14d72472d1d038836be5fa33dc31feb
This commit is contained in:
@@ -19,7 +19,6 @@ import static com.google.common.collect.Iterables.getOnlyElement;
|
|||||||
import static com.google.gerrit.server.git.QueueProvider.QueueType.INTERACTIVE;
|
import static com.google.gerrit.server.git.QueueProvider.QueueType.INTERACTIVE;
|
||||||
import static com.google.gerrit.server.index.IndexRewriteImpl.CLOSED_STATUSES;
|
import static com.google.gerrit.server.index.IndexRewriteImpl.CLOSED_STATUSES;
|
||||||
import static com.google.gerrit.server.index.IndexRewriteImpl.OPEN_STATUSES;
|
import static com.google.gerrit.server.index.IndexRewriteImpl.OPEN_STATUSES;
|
||||||
|
|
||||||
import static java.util.concurrent.TimeUnit.MILLISECONDS;
|
import static java.util.concurrent.TimeUnit.MILLISECONDS;
|
||||||
import static java.util.concurrent.TimeUnit.MINUTES;
|
import static java.util.concurrent.TimeUnit.MINUTES;
|
||||||
|
|
||||||
|
@@ -17,8 +17,6 @@ package com.google.gerrit.lucene;
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import java.io.IOException;
|
|
||||||
|
|
||||||
import org.apache.lucene.index.DirectoryReader;
|
import org.apache.lucene.index.DirectoryReader;
|
||||||
import org.apache.lucene.index.FilterDirectoryReader;
|
import org.apache.lucene.index.FilterDirectoryReader;
|
||||||
import org.apache.lucene.index.FilterLeafReader;
|
import org.apache.lucene.index.FilterLeafReader;
|
||||||
@@ -29,6 +27,8 @@ import org.apache.lucene.search.ReferenceManager;
|
|||||||
import org.apache.lucene.search.SearcherFactory;
|
import org.apache.lucene.search.SearcherFactory;
|
||||||
import org.apache.lucene.store.Directory;
|
import org.apache.lucene.store.Directory;
|
||||||
|
|
||||||
|
import java.io.IOException;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Utility class to safely share {@link IndexSearcher} instances across multiple
|
* Utility class to safely share {@link IndexSearcher} instances across multiple
|
||||||
* threads, while periodically reopening. This class ensures each searcher is
|
* threads, while periodically reopening. This class ensures each searcher is
|
||||||
|
@@ -17,7 +17,6 @@ package com.google.gerrit.server.git;
|
|||||||
import java.io.BufferedReader;
|
import java.io.BufferedReader;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.io.StringReader;
|
import java.io.StringReader;
|
||||||
import java.lang.Math;
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.Collection;
|
import java.util.Collection;
|
||||||
import java.util.Collections;
|
import java.util.Collections;
|
||||||
|
@@ -15,8 +15,8 @@
|
|||||||
package com.google.gerrit.sshd;
|
package com.google.gerrit.sshd;
|
||||||
|
|
||||||
import static java.nio.charset.StandardCharsets.UTF_8;
|
import static java.nio.charset.StandardCharsets.UTF_8;
|
||||||
import com.google.common.base.Preconditions;
|
|
||||||
|
|
||||||
|
import com.google.common.base.Preconditions;
|
||||||
import com.google.gerrit.common.FileUtil;
|
import com.google.gerrit.common.FileUtil;
|
||||||
import com.google.gerrit.reviewdb.client.AccountSshKey;
|
import com.google.gerrit.reviewdb.client.AccountSshKey;
|
||||||
import com.google.gerrit.server.IdentifiedUser;
|
import com.google.gerrit.server.IdentifiedUser;
|
||||||
|
Reference in New Issue
Block a user