mirror of https://github.com/apache/lucene.git
Remove unused imports (#12970)
This commit is contained in:
parent
948970be58
commit
9c9949b2bc
|
@ -21,22 +21,16 @@ import java.io.InputStream;
|
||||||
import java.io.OutputStream;
|
import java.io.OutputStream;
|
||||||
import java.net.HttpURLConnection;
|
import java.net.HttpURLConnection;
|
||||||
import java.net.URL;
|
import java.net.URL;
|
||||||
import java.net.URLConnection;
|
|
||||||
import java.nio.channels.Channels;
|
|
||||||
import java.nio.channels.FileChannel;
|
|
||||||
import java.nio.channels.ReadableByteChannel;
|
|
||||||
import java.nio.charset.StandardCharsets;
|
import java.nio.charset.StandardCharsets;
|
||||||
import java.nio.file.Files;
|
import java.nio.file.Files;
|
||||||
import java.nio.file.Path;
|
import java.nio.file.Path;
|
||||||
import java.nio.file.Paths;
|
import java.nio.file.Paths;
|
||||||
import java.security.MessageDigest;
|
import java.security.MessageDigest;
|
||||||
import java.security.NoSuchAlgorithmException;
|
import java.security.NoSuchAlgorithmException;
|
||||||
import java.util.EnumSet;
|
|
||||||
import java.util.Locale;
|
import java.util.Locale;
|
||||||
import java.util.concurrent.TimeUnit;
|
import java.util.concurrent.TimeUnit;
|
||||||
|
|
||||||
import static java.nio.file.StandardCopyOption.REPLACE_EXISTING;
|
import static java.nio.file.StandardCopyOption.REPLACE_EXISTING;
|
||||||
import static java.nio.file.StandardOpenOption.APPEND;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Standalone class that can be used to download a gradle-wrapper.jar
|
* Standalone class that can be used to download a gradle-wrapper.jar
|
||||||
|
@ -60,7 +54,7 @@ public class WrapperDownloader {
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void checkVersion() {
|
public static void checkVersion() {
|
||||||
int major = Runtime.getRuntime().version().feature();
|
int major = Runtime.version().feature();
|
||||||
if (major < 17 || major > 21) {
|
if (major < 17 || major > 21) {
|
||||||
throw new IllegalStateException("java version must be between 17 and 21, your version: " + major);
|
throw new IllegalStateException("java version must be between 17 and 21, your version: " + major);
|
||||||
}
|
}
|
||||||
|
|
|
@ -21,12 +21,10 @@ import java.util.Collections;
|
||||||
import java.util.HashSet;
|
import java.util.HashSet;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Locale;
|
import java.util.Locale;
|
||||||
import java.util.Optional;
|
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
import java.util.stream.Collectors;
|
import java.util.stream.Collectors;
|
||||||
import java.util.stream.Stream;
|
import java.util.stream.Stream;
|
||||||
|
|
||||||
import javax.lang.model.element.AnnotationMirror;
|
|
||||||
import javax.lang.model.element.Element;
|
import javax.lang.model.element.Element;
|
||||||
import javax.lang.model.element.ElementKind;
|
import javax.lang.model.element.ElementKind;
|
||||||
import javax.lang.model.element.ExecutableElement;
|
import javax.lang.model.element.ExecutableElement;
|
||||||
|
@ -75,8 +73,7 @@ public class MissingDoclet extends StandardDoclet {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Set<Doclet.Option> getSupportedOptions() {
|
public Set<Doclet.Option> getSupportedOptions() {
|
||||||
Set<Doclet.Option> options = new HashSet<>();
|
Set<Doclet.Option> options = new HashSet<>(super.getSupportedOptions());
|
||||||
options.addAll(super.getSupportedOptions());
|
|
||||||
options.add(new Doclet.Option() {
|
options.add(new Doclet.Option() {
|
||||||
@Override
|
@Override
|
||||||
public int getArgumentCount() {
|
public int getArgumentCount() {
|
||||||
|
@ -410,7 +407,7 @@ public class MissingDoclet extends StandardDoclet {
|
||||||
case MODULE:
|
case MODULE:
|
||||||
case PACKAGE:
|
case PACKAGE:
|
||||||
// for modules/packages, we don't have filename + line number, fully qualify
|
// for modules/packages, we don't have filename + line number, fully qualify
|
||||||
fullMessage.append(element.toString());
|
fullMessage.append(element);
|
||||||
break;
|
break;
|
||||||
case METHOD:
|
case METHOD:
|
||||||
case CONSTRUCTOR:
|
case CONSTRUCTOR:
|
||||||
|
|
|
@ -21,7 +21,6 @@ import java.io.IOException;
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
import org.apache.lucene.index.LeafReaderContext;
|
import org.apache.lucene.index.LeafReaderContext;
|
||||||
import org.apache.lucene.search.*;
|
import org.apache.lucene.search.*;
|
||||||
import org.apache.lucene.search.Matches;
|
|
||||||
|
|
||||||
/** Query wrapper that forces its wrapped Query to use the default doc-by-doc BulkScorer. */
|
/** Query wrapper that forces its wrapped Query to use the default doc-by-doc BulkScorer. */
|
||||||
class ForceNoBulkScoringQuery extends Query {
|
class ForceNoBulkScoringQuery extends Query {
|
||||||
|
|
Loading…
Reference in New Issue